summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-03-06 00:26:58 +0100
committerHaru <haru@dotalux.com>2016-03-06 00:26:58 +0100
commit7009fe344df6b0c944cfa833e69143c44afc9f74 (patch)
tree899fae57548d0025df8f1c0cdb39ebf6236c4649
parentee60ae383259adedf6436fd2c6f72d4e5bddd909 (diff)
parent8846818298750048288a39dc8072e15c7e67456d (diff)
downloadhercules-7009fe344df6b0c944cfa833e69143c44afc9f74.tar.gz
hercules-7009fe344df6b0c944cfa833e69143c44afc9f74.tar.bz2
hercules-7009fe344df6b0c944cfa833e69143c44afc9f74.tar.xz
hercules-7009fe344df6b0c944cfa833e69143c44afc9f74.zip
Merge pull request #1183 from 4144/bonuserror
Show call stacks if try to apply unknown bonus.
-rw-r--r--src/map/pc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 51aba9509..7b4d47db2 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2885,6 +2885,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val) {
break;
default:
ShowWarning("pc_bonus: unknown type %d %d !\n",type,val);
+ Assert_report(0);
break;
}
return 0;
@@ -3677,6 +3678,7 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val)
#endif
default:
ShowWarning("pc_bonus2: unknown type %d %d %d!\n",type,type2,val);
+ Assert_report(0);
break;
}
return 0;
@@ -3849,6 +3851,7 @@ int pc_bonus3(struct map_session_data *sd,int type,int type2,int type3,int val)
default:
ShowWarning("pc_bonus3: unknown type %d %d %d %d!\n",type,type2,type3,val);
+ Assert_report(0);
break;
}
@@ -3943,6 +3946,7 @@ int pc_bonus4(struct map_session_data *sd,int type,int type2,int type3,int type4
default:
ShowWarning("pc_bonus4: unknown type %d %d %d %d %d!\n",type,type2,type3,type4,val);
+ Assert_report(0);
break;
}
@@ -3970,6 +3974,7 @@ int pc_bonus5(struct map_session_data *sd,int type,int type2,int type3,int type4
default:
ShowWarning("pc_bonus5: unknown type %d %d %d %d %d %d!\n",type,type2,type3,type4,type5,val);
+ Assert_report(0);
break;
}