diff options
| author | ModoX <moardox@gmail.com> | 2024-04-09 16:39:15 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2024-10-05 18:00:07 +0200 |
| commit | ed41672be075c35168f2037c368e27cae51dee2f (patch) | |
| tree | 41421c95a557d9ac26971c5d41fabf03ac561687 /src/server/game/Entities/GameObject | |
| parent | d900e0e9558d310e7ca35a18dadac76310d47d77 (diff) | |
Core/Entities: Update StringId assignment to use StringIdType
(cherry picked from commit 9959a1373a1851e484ddef9268d98b116c5d8241)
Diffstat (limited to 'src/server/game/Entities/GameObject')
| -rw-r--r-- | src/server/game/Entities/GameObject/GameObject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index c89c45911a8..02f25493186 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -418,7 +418,7 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u LastUsedScriptID = GetGOInfo()->ScriptId; - m_stringIds[0] = goinfo->StringId; + m_stringIds[AsUnderlyingType(StringIdType::Template)] = goinfo->StringId; AIM_Initialize(); @@ -1145,7 +1145,7 @@ bool GameObject::LoadFromDB(ObjectGuid::LowType spawnId, Map* map, bool addToMap m_goData = data; - m_stringIds[1] = data->StringId; + m_stringIds[AsUnderlyingType(StringIdType::Spawn)] = data->StringId; if (addToMap && !GetMap()->AddToMap(this)) return false; @@ -2285,12 +2285,12 @@ void GameObject::SetScriptStringId(std::string id) if (!id.empty()) { m_scriptStringId.emplace(std::move(id)); - m_stringIds[2] = *m_scriptStringId; + m_stringIds[AsUnderlyingType(StringIdType::Script)] = *m_scriptStringId; } else { m_scriptStringId.reset(); - m_stringIds[2] = {}; + m_stringIds[AsUnderlyingType(StringIdType::Script)] = {}; } } |
