mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-15 06:29:13 +01:00
Core/Maps: initialize vmapZ offset in Map::GetAreaId with the given z offset to retrieve the correct area Id with spawning things inside of WMOs that have their own area data
This commit is contained in:
@@ -2535,7 +2535,7 @@ uint32 Map::GetAreaId(PhaseShift const& phaseShift, float x, float y, float z)
|
||||
{
|
||||
uint32 mogpFlags;
|
||||
int32 adtId, rootId, groupId;
|
||||
float vmapZ;
|
||||
float vmapZ = z;
|
||||
uint32 terrainMapId = PhasingHandler::GetTerrainMapId(phaseShift, this, x, y);
|
||||
bool hasVmapArea = VMAP::VMapFactory::createOrGetVMapManager()->getAreaInfo(terrainMapId, x, y, vmapZ, mogpFlags, adtId, rootId, groupId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user