From 50d0bf915ea7192fb420a00ca08c9d7937e8ed93 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Mon, 30 Aug 2021 17:34:49 +0200 Subject: [PATCH] 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 --- src/server/game/Maps/Map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index dbd9a0dc7d4..c33c2836aba 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -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);