Преглед изворни кода

Follow up to 07e2bf0

Fixed a missing switch case.

Thanks to @teededung and @RadianFord.
Lemongrass3110 пре 7 година
родитељ
комит
cc63bb594f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/map/script.cpp

+ 1 - 0
src/map/script.cpp

@@ -9246,6 +9246,7 @@ BUILDIN_FUNC(bonus)
 	}
 
 	switch( script_lastdata(st)-2 ) {
+		case 0:
 		case 1:
 			pc_bonus(sd, type, val1);
 			break;