mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user