瀏覽代碼

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;