Pārlūkot izejas kodu

Overwrite real invalid timer ids

Lemongrass3110 2 gadi atpakaļ
vecāks
revīzija
c28886ee0e
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      src/map/chrif.cpp

+ 3 - 0
src/map/chrif.cpp

@@ -344,6 +344,9 @@ int chrif_save(struct map_session_data *sd, int flag) {
 				delete_timer( sd->goldpc_tid, pc_goldpc_update );
 				sd->goldpc_tid = INVALID_TIMER;
 			}
+		}else{
+			// Invalid timer anyway
+			sd->goldpc_tid = INVALID_TIMER;
 		}
 	}