Core/Maps: Fixed retrieving terrain info when on child maps
This commit is contained in:
1 parent
f76990a37b
commit
eeb2f63b65
10 files changed
+92
-99
No files matched your search
@@ -40,7 +40,7 @@ PathGenerator::PathGenerator(WorldObject const* owner) :
|
||||
|
||||
TC_LOG_DEBUG("maps.mmaps", "++ PathGenerator::PathGenerator for %u", _source->GetGUID().GetCounter());
|
||||
|
||||
uint32 mapId = PhasingHandler::GetTerrainMapId(_source->GetPhaseShift(), _source->GetMap()->GetTerrain(), _source->GetPositionX(), _source->GetPositionY());
|
||||
uint32 mapId = PhasingHandler::GetTerrainMapId(_source->GetPhaseShift(), _source->GetMapId(), _source->GetMap()->GetTerrain(), _source->GetPositionX(), _source->GetPositionY());
|
||||
if (DisableMgr::IsPathfindingEnabled(mapId))
|
||||
{
|
||||
MMAP::MMapManager* mmap = MMAP::MMapFactory::createOrGetMMapManager();
|
||||
|
||||
Reference in new issue
Block a user