Browse Source

* Fixed bugreport http://rathena.org/board/tracker/issue-8226-pcc-warning/

Signed-off-by: Cahyadi Ramadhan Togihon <house.bad@gmail.com>
Cahyadi Ramadhan Togihon 11 năm trước cách đây
mục cha
commit
75af62845b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/map/pc.c

+ 1 - 1
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));