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:
@@ -150,6 +150,9 @@ namespace Game.Entities
|
|||||||
|
|
||||||
public void UpdateZone(uint newZone, uint newArea)
|
public void UpdateZone(uint newZone, uint newArea)
|
||||||
{
|
{
|
||||||
|
if (!IsInWorld)
|
||||||
|
return;
|
||||||
|
|
||||||
uint oldZone = m_zoneUpdateId;
|
uint oldZone = m_zoneUpdateId;
|
||||||
m_zoneUpdateId = newZone;
|
m_zoneUpdateId = newZone;
|
||||||
m_zoneUpdateTimer = 1 * Time.InMilliseconds;
|
m_zoneUpdateTimer = 1 * Time.InMilliseconds;
|
||||||
|
|||||||
Reference in New Issue
Block a user