diff options
author | megamage <none@none> | 2009-06-16 11:19:59 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-16 11:19:59 -0500 |
commit | 3cf2be604275ec1ae7321b78dc6b62e559a5d7c7 (patch) | |
tree | d119d51bcee396d8fe913fa6b709ff45da2a2c2e /src/game/InstanceSaveMgr.cpp | |
parent | aaec3c819167afb3f40410142654ed4d57926b10 (diff) |
[8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
Diffstat (limited to 'src/game/InstanceSaveMgr.cpp')
-rw-r--r-- | src/game/InstanceSaveMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/InstanceSaveMgr.cpp b/src/game/InstanceSaveMgr.cpp index 2c304191136..d45e3fac451 100644 --- a/src/game/InstanceSaveMgr.cpp +++ b/src/game/InstanceSaveMgr.cpp @@ -580,7 +580,7 @@ void InstanceSaveManager::_ResetSave(InstanceSaveHashMap::iterator &itr) void InstanceSaveManager::_ResetInstance(uint32 mapid, uint32 instanceId) { sLog.outDebug("InstanceSaveMgr::_ResetInstance %u, %u", mapid, instanceId); - Map *map = (MapInstanced*)MapManager::Instance().GetBaseMap(mapid); + Map *map = (MapInstanced*)MapManager::Instance().CreateBaseMap(mapid); if(!map->Instanceable()) return; @@ -597,7 +597,7 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, bool warn, uint32 timeLe { // global reset for all instances of the given map // note: this isn't fast but it's meant to be executed very rarely - Map const *map = MapManager::Instance().GetBaseMap(mapid); + Map const *map = MapManager::Instance().CreateBaseMap(mapid); if(!map->Instanceable()) return; uint64 now = (uint64)time(NULL); |