Fixed a missing switch case. Thanks to @teededung and @RadianFord.
@@ -9246,6 +9246,7 @@ BUILDIN_FUNC(bonus)
}
switch( script_lastdata(st)-2 ) {
+ case 0:
case 1:
pc_bonus(sd, type, val1);
break;