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

(cherry picked from commit bf81a7b207)
This commit is contained in:
Treeston
2017-10-26 11:35:06 +02:00
committed by funjoker
parent 097335f2c4
commit 6a69dcced2

View File

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