* Fixed bugreport http://rathena.org/board/tracker/issue-8226-pcc-warning/
Signed-off-by: Cahyadi Ramadhan Togihon <house.bad@gmail.com>
This commit is contained in:
parent
80074e90e3
commit
75af62845b
@ -10412,7 +10412,7 @@ int pc_bonus_script_timer(int tid, unsigned int tick, int id, intptr_t data) {
|
||||
* @param i script index
|
||||
**/
|
||||
void pc_bonus_script_remove(struct map_session_data *sd, uint8 i) {
|
||||
if (!sd || i < 0 || i >= MAX_PC_BONUS_SCRIPT)
|
||||
if (!sd || i >= MAX_PC_BONUS_SCRIPT)
|
||||
return;
|
||||
|
||||
memset(&sd->bonus_script[i].script,0,sizeof(sd->bonus_script[i].script));
|
||||
|
Loading…
x
Reference in New Issue
Block a user