Core/Instances: Fix crash and allocation issue in instance id generation

This commit is contained in:
leak committed 2011-03-11 13:24:58 +01:00
1 parent 3973d1b454
commit 190ef1c2ef
2 files changed
+2 -6

No files matched your search

@@ -560,7 +560,7 @@ void InstanceSaveManager::_ResetInstance(uint32 mapid, uint32 instanceId)
sObjectMgr->DeleteRespawnTimeForInstance(instanceId); // even if map is not loaded
// Free up the instance id and allow it to be reused
sMapMgr->FreeInstanceId(iMap->GetInstanceId());
sMapMgr->FreeInstanceId(instanceId);
}
void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, bool warn, time_t resetTime)