void MapManager::FreeInstanceId(uint32 instanceId) { // If freed instance id is lower than the next id available for new instances, use the freed one instead if (instanceId < _nextInstanceId) SetNextInstanceId(instanceId); _instanceIds[instanceId] = false; }
void MapManager::FreeInstanceId(uint32 instanceId) { // If freed instance id is lower than the next id available for new instances, use the freed one instead if (instanceId < _nextInstanceId) SetNextInstanceId(instanceId); _instanceIds[instanceId] = false; sAchievementMgr->OnInstanceDestroyed(instanceId); #ifdef ELUNA sEluna->FreeInstanceId(instanceId); #endif }