Skip to content

Commit d98bb5f

Browse files
mdX7Shauren
authored andcommitted
Core/Entities: nopch build fix
(cherry picked from commit 58839b7c18f4d0662ee407887ec1323040420d5a)
1 parent ed41672 commit d98bb5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server/game/Entities/Creature/Creature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class TC_GAME_API Creature : public Unit, public GridObject<Creature>, public Ma
201201
bool HasStringId(std::string_view id) const;
202202
void SetScriptStringId(std::string id);
203203
std::array<std::string_view, 3> const& GetStringIds() const { return m_stringIds; }
204-
std::string_view const& GetStringId(StringIdType type) const { return m_stringIds[AsUnderlyingType(type)]; }
204+
std::string_view GetStringId(StringIdType type) const { return m_stringIds[size_t(type)]; }
205205

206206
// override WorldObject function for proper name localization
207207
std::string const& GetNameForLocaleIdx(LocaleConstant locale_idx) const override;

src/server/game/Entities/GameObject/GameObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject>
277277
bool HasStringId(std::string_view id) const;
278278
void SetScriptStringId(std::string id);
279279
std::array<std::string_view, 3> const& GetStringIds() const { return m_stringIds; }
280-
std::string_view const& GetStringId(StringIdType type) const { return m_stringIds[AsUnderlyingType(type)]; }
280+
std::string_view GetStringId(StringIdType type) const { return m_stringIds[size_t(type)]; }
281281

282282
void SetDisplayId(uint32 displayid);
283283
uint32 GetDisplayId() const { return GetUInt32Value(GAMEOBJECT_DISPLAYID); }

0 commit comments

Comments
 (0)