Core/WorldObject: Properly initialize position data for all types when initially creating them. Fixes some issues with PvP objectives not having the correct area ID set on initialization. Closes #20028.

(cherry picked from commit 28b3469e89)
This commit is contained in:
Treeston
2017-07-23 00:01:11 +02:00
committed by Shauren
parent b630e9a485
commit e6be53d141
3 changed files with 5 additions and 0 deletions
@@ -258,6 +258,8 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD
return false;
}
UpdatePositionData();
SetZoneScript();
if (m_zoneScript)
{