Skip to content

Commit d385a9d

Browse files
authored
Use AddDynamicUpdateFieldValue
1 parent 758aa9c commit d385a9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/game/Entities/GameObject/GameObject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,10 +1149,10 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD
11491149
SetFlag(GameObjectFlags((m_goInfo->phaseableMO.AreaNameSet & 0xF) << 8));
11501150

11511151
if (GetGOInfo()->phaseableMO.DoodadSetA)
1152-
SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets, 0), static_cast<int32>(GetGOInfo()->phaseableMO.DoodadSetA));
1152+
AddDynamicUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets)) = static_cast<int32>(GetGOInfo()->phaseableMO.DoodadSetA);
11531153

11541154
if (GetGOInfo()->phaseableMO.DoodadSetB)
1155-
SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets, 1), static_cast<int32>(GetGOInfo()->phaseableMO.DoodadSetB));
1155+
AddDynamicUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets)) = static_cast<int32>(GetGOInfo()->phaseableMO.DoodadSetB);
11561156
break;
11571157
case GAMEOBJECT_TYPE_CAPTURE_POINT:
11581158
SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::SpellVisualID), m_goInfo->capturePoint.SpellVisual1);

0 commit comments

Comments
 (0)