소스 검색

Overwrite real invalid timer ids

Lemongrass3110 2 년 전
부모
커밋
c28886ee0e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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;
 		}
 	}