fix(Core/Maps): fix getting wrong area/zone on spawn (#7590)

- Closes #7580
This commit is contained in:
UltraNix
2021-08-30 14:49:44 +02:00
committed by GitHub
parent a99bc5f350
commit c111955399

View File

@@ -2118,7 +2118,7 @@ uint32 Map::GetAreaId(uint32 phaseMask, float x, float y, float z) const
{
uint32 mogpFlags;
int32 adtId, rootId, groupId;
float vmapZ = 0.f;
float vmapZ = z;
bool hasVmapArea = GetAreaInfo(phaseMask, x, y, vmapZ, mogpFlags, adtId, rootId, groupId);
uint32 gridAreaId = 0;