Core/Map: Fix a crash bug when teleporting out of map before being fully added to that map. Closes #20289.

(cherry picked from commit bf81a7b207b28d0a873cc9e3f2ece6a322d80256)
This commit is contained in:
Treeston
2021-01-13 22:04:52 +01:00
committed by funjoker
parent 097335f2c4
commit 6a69dcced2
@@ -7088,6 +7088,8 @@ void Player::UpdateArea(uint32 newArea)
void Player::UpdateZone(uint32 newZone, uint32 newArea)
{
if (!IsInWorld())
return;
uint32 const oldZone = m_zoneUpdateId;
m_zoneUpdateId = newZone;
m_zoneUpdateTimer = ZONE_UPDATE_INTERVAL;