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:
UltraNix
2021-08-30 17:34:49 +02:00
committed by Ovahlord
parent 7ac3d6fca9
commit 50d0bf915e

View File

@@ -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);