Explorar o código

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

Signed-off-by: Cahyadi Ramadhan Togihon <house.bad@gmail.com>
Cahyadi Ramadhan Togihon %!s(int64=11) %!d(string=hai) anos
pai
achega
75af62845b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));