aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/ChatLink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Chat/ChatLink.cpp')
-rw-r--r--src/server/game/Chat/ChatLink.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Chat/ChatLink.cpp b/src/server/game/Chat/ChatLink.cpp
index 89a7d64c432..9d5d518234a 100644
--- a/src/server/game/Chat/ChatLink.cpp
+++ b/src/server/game/Chat/ChatLink.cpp
@@ -167,13 +167,13 @@ bool ItemChatLink::Initialize(std::istringstream& iss)
return true;
}
-inline std::string ItemChatLink::FormatName(uint8 index, char* suffixStrings) const
+std::string ItemChatLink::FormatName(uint8 index, LocalizedString* suffixStrings) const
{
std::stringstream ss;
ss << _item->GetName(LocaleConstant(index));
if (suffixStrings)
- ss << ' ' << suffixStrings[index];
+ ss << ' ' << suffixStrings->Str[index];
return ss.str();
}
@@ -181,7 +181,7 @@ bool ItemChatLink::ValidateName(char* buffer, const char* context)
{
ChatLink::ValidateName(buffer, context);
- char* suffixStrings = _suffix ? _suffix->Name_lang : (_property ? _property->Name_lang : NULL);
+ LocalizedString* suffixStrings = _suffix ? _suffix->Name : (_property ? _property->Name : NULL);
bool res = (FormatName(LOCALE_enUS, suffixStrings) == buffer);
if (!res)