Core/Maps: Fixed retrieving terrain info when on child maps

This commit is contained in:
Shauren authored and Ovahlord committed 2023-01-02 15:23:21 +01:00
1 parent f76990a37b
commit eeb2f63b65
10 files changed
+92 -99

No files matched your search

+1 -1
View File
@@ -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();