Skip to content

Commit

Permalink
Show call stacks if try to apply unknown bonus.
Browse files Browse the repository at this point in the history
  • Loading branch information
4144 committed Mar 5, 2016
1 parent ee60ae3 commit 8846818
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/map/pc.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 8846818

Please sign in to comment.