Преглед на файлове

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;