From 75af62845b81b2f5372e0dcd918c3ee3e89c5c07 Mon Sep 17 00:00:00 2001 From: Cahyadi Ramadhan Togihon Date: Mon, 11 Nov 2013 16:10:50 +0700 Subject: [PATCH] * Fixed bugreport http://rathena.org/board/tracker/issue-8226-pcc-warning/ Signed-off-by: Cahyadi Ramadhan Togihon --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/pc.c b/src/map/pc.c index 7b149458a1..0419d5e8a4 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -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));