mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
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:
@@ -1000,6 +1000,8 @@ bool Creature::Create(ObjectGuid::LowType guidlow, Map* map, uint32 /*phaseMask*
|
||||
return false;
|
||||
}
|
||||
|
||||
UpdatePositionData();
|
||||
|
||||
if (!CreateFromProto(guidlow, entry, data, vehId))
|
||||
return false;
|
||||
|
||||
|
||||
@@ -212,6 +212,8 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u
|
||||
if (!dynamic)
|
||||
SetRespawnCompatibilityMode();
|
||||
|
||||
UpdatePositionData();
|
||||
|
||||
SetZoneScript();
|
||||
if (m_zoneScript)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user