aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/ChatLink.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-07-07 12:13:14 +0200
committerShauren <shauren.trinity@gmail.com>2015-07-07 12:13:14 +0200
commitdea6c0b122c8f4b97cb7b3833b41d9bef5c0d911 (patch)
tree8ced5dfe3c85d1742b91b00325bbb0ffd2d9df7a /src/server/game/Chat/ChatLink.cpp
parentd8338669d51fe114ce0698ddde44de113d95e76e (diff)
Core/DataStores: Updated dbc/db2 structures to 6.2.0
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)