diff options
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
| -rw-r--r-- | src/server/game/Maps/Map.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index a64460e9bf9..c10b85085de 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -24,7 +24,6 @@ #include "Conversation.h" #include "DatabaseEnv.h" #include "DB2Stores.h" -#include "DisableMgr.h" #include "DynamicTree.h" #include "GameObjectModel.h" #include "GameTime.h" @@ -40,7 +39,6 @@ #include "MapManager.h" #include "Metric.h" #include "MiscPackets.h" -#include "MMapFactory.h" #include "MotionMaster.h" #include "ObjectAccessor.h" #include "ObjectGridLoader.h" @@ -115,7 +113,7 @@ Map::~Map() sOutdoorPvPMgr->DestroyOutdoorPvPForMap(this); sBattlefieldMgr->DestroyBattlefieldsForMap(this); - MMAP::MMapFactory::createOrGetMMapManager()->unloadMapInstance(GetId(), i_InstanceId); + m_terrain->UnloadMMapInstance(GetId(), GetInstanceId()); } void Map::LoadAllCells() @@ -172,7 +170,7 @@ i_scriptLock(false), _respawnTimes(std::make_unique<RespawnListContainer>()), _r sTransportMgr->CreateTransportsForMap(this); - MMAP::MMapFactory::createOrGetMMapManager()->loadMapInstance(sWorld->GetDataPath(), GetId(), i_InstanceId); + m_terrain->LoadMMapInstance(GetId(), GetInstanceId()); _worldStateValues = sWorldStateMgr->GetInitialWorldStatesForMap(this); |
