Core/Entities: nopch build fix

(cherry picked from commit 58839b7c18)
This commit is contained in:
ModoX
2024-04-09 17:00:43 +02:00
committed by Ovahlord
parent ad5013ebf6
commit b60a8b2095
2 changed files with 2 additions and 2 deletions

View File

@@ -247,7 +247,7 @@ class TC_GAME_API Creature : public Unit, public GridObject<Creature>, public Ma
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)]; }
// override WorldObject function for proper name localization
std::string GetNameForLocaleIdx(LocaleConstant locale) const override;

View File

@@ -381,7 +381,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 m_gameObjectData->DisplayID; }