Core/Objects: Update position data of gameobjects and creatures before setting their zone scripts. This fixes capture points not being assigned to their outdoor pvp zone

This commit is contained in:
Ovahlord committed 2019-01-26 16:23:43 +01:00
1 parent 252147f704
commit 1d469a3d80
2 files changed
+4

No files matched your search

@@ -212,6 +212,8 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u
if (!dynamic)
SetRespawnCompatibilityMode();
UpdatePositionData();
SetZoneScript();
if (m_zoneScript)
{