Browse Source

Overwrite real invalid timer ids

Lemongrass3110 2 năm trước cách đây
mục cha
commit
c28886ee0e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;
 		}
 	}