aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities/GameObject
diff options
context:
space:
mode:
authorModoX <moardox@gmail.com>2024-04-09 17:00:43 +0200
committerShauren <shauren.trinity@gmail.com>2024-10-05 18:00:07 +0200
commitd98bb5f83c694e1571087ea2f6facdd302d84c5b (patch)
treeae1b7ba5d85eeccd3585ab623b7a74a77804c1d4 /src/server/game/Entities/GameObject
parented41672be075c35168f2037c368e27cae51dee2f (diff)
Core/Entities: nopch build fix
(cherry picked from commit 58839b7c18f4d0662ee407887ec1323040420d5a)
Diffstat (limited to 'src/server/game/Entities/GameObject')
-rw-r--r--src/server/game/Entities/GameObject/GameObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h
index af5261be1b1..45601068bb4 100644
--- a/src/server/game/Entities/GameObject/GameObject.h
+++ b/src/server/game/Entities/GameObject/GameObject.h
@@ -277,7 +277,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject>
bool HasStringId(std::string_view id) const;
void SetScriptStringId(std::string id);
std::array<std::string_view, 3> const& GetStringIds() const { return m_stringIds; }
- std::string_view const& GetStringId(StringIdType type) const { return m_stringIds[AsUnderlyingType(type)]; }
+ std::string_view GetStringId(StringIdType type) const { return m_stringIds[size_t(type)]; }
void SetDisplayId(uint32 displayid);
uint32 GetDisplayId() const { return GetUInt32Value(GAMEOBJECT_DISPLAYID); }