aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat
diff options
context:
space:
mode:
authorIntel <chemicstry@gmail.com>2014-11-09 02:51:35 +0200
committerIntel <chemicstry@gmail.com>2014-11-09 02:51:35 +0200
commit2a4f56107f6e066211eebfe85ee70a9f5a9735fb (patch)
tree89e7d8b34d262fe27d4966d14f0e0414de4d7cbc /src/server/game/Chat
parentd666e77ae8704528407c87e5d6e45af13540aab5 (diff)
Core/DataStores: Even more converted dbcs
Diffstat (limited to 'src/server/game/Chat')
-rw-r--r--src/server/game/Chat/ChatLink.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Chat/ChatLink.cpp b/src/server/game/Chat/ChatLink.cpp
index ea6df4c984c..e671713c643 100644
--- a/src/server/game/Chat/ChatLink.cpp
+++ b/src/server/game/Chat/ChatLink.cpp
@@ -299,15 +299,15 @@ bool SpellChatLink::ValidateName(char* buffer, const char* context)
TC_LOG_TRACE("chat.system", "ChatHandler::isValidChatMessage('%s'): skill line ability not found for spell %u", context, _spell->Id);
return false;
}
- SkillLineEntry const* skillLine = sSkillLineStore.LookupEntry(skillInfo->skillId);
+ SkillLineEntry const* skillLine = sSkillLineStore.LookupEntry(skillInfo->SkillLine);
if (!skillLine)
{
- TC_LOG_TRACE("chat.system", "ChatHandler::isValidChatMessage('%s'): skill line not found for skill %u", context, skillInfo->skillId);
+ TC_LOG_TRACE("chat.system", "ChatHandler::isValidChatMessage('%s'): skill line not found for skill %u", context, skillInfo->SkillLine);
return false;
}
- uint32 skillLineNameLength = strlen(skillLine->name);
- if (skillLineNameLength > 0 && strncmp(skillLine->name, buffer, skillLineNameLength) == 0)
+ uint32 skillLineNameLength = strlen(skillLine->DisplayName_lang);
+ if (skillLineNameLength > 0 && strncmp(skillLine->DisplayName_lang, buffer, skillLineNameLength) == 0)
{
// found the prefix, remove it to perform spellname validation below
// -2 = strlen(": ")