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

Port From (https://github.com/TrinityCore/TrinityCore/commit/6a69dcced2e5bb6227eff28c48c4636cfdb23a1e)
This commit is contained in:
hondacrx
2021-01-19 13:33:43 -05:00
parent 73f4790346
commit 72d1475863
@@ -150,6 +150,9 @@ namespace Game.Entities
public void UpdateZone(uint newZone, uint newArea)
{
if (!IsInWorld)
return;
uint oldZone = m_zoneUpdateId;
m_zoneUpdateId = newZone;
m_zoneUpdateTimer = 1 * Time.InMilliseconds;