aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Hyperlinks.cpp
diff options
context:
space:
mode:
authorPeter Keresztes Schmidt <carbenium@outlook.com>2020-07-12 15:36:55 +0200
committerGitHub <noreply@github.com>2020-07-12 15:36:55 +0200
commitc92950b3e1f6366d85d707365a8ad2caddafeecc (patch)
tree9c034dc61e7b8dc5d480bfd476a6631b8d9dd592 /src/server/game/Chat/Hyperlinks.cpp
parent352944266822f8c8d3bfdd6078c6f82d3555dd85 (diff)
Core/DataStores: Update DBC field names to generated ones (#24999)
Diffstat (limited to 'src/server/game/Chat/Hyperlinks.cpp')
-rw-r--r--src/server/game/Chat/Hyperlinks.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Chat/Hyperlinks.cpp b/src/server/game/Chat/Hyperlinks.cpp
index f561b1d7ebb..eb49cdcc10b 100644
--- a/src/server/game/Chat/Hyperlinks.cpp
+++ b/src/server/game/Chat/Hyperlinks.cpp
@@ -128,14 +128,14 @@ struct LinkValidator<LinkTags::item>
if (data.RandomPropertyId < 0)
{
if (ItemRandomSuffixEntry const* suffixEntry = sItemRandomSuffixStore.LookupEntry(-data.RandomPropertyId))
- randomSuffix = suffixEntry->nameSuffix;
+ randomSuffix = suffixEntry->Name;
else
return false;
}
else if (data.RandomPropertyId > 0)
{
if (ItemRandomPropertiesEntry const* propEntry = sItemRandomPropertiesStore.LookupEntry(data.RandomPropertyId))
- randomSuffix = propEntry->nameSuffix;
+ randomSuffix = propEntry->Name;
else
return false;
}
@@ -227,13 +227,13 @@ struct LinkValidator<LinkTags::enchant>
for (auto pair = bounds.first; pair != bounds.second; ++pair)
{
- SkillLineEntry const* skill = sSkillLineStore.LookupEntry(pair->second->skillId);
+ SkillLineEntry const* skill = sSkillLineStore.LookupEntry(pair->second->SkillLine);
if (!skill)
return false;
for (uint8 i = 0; i < TOTAL_LOCALES; ++i)
{
- char const* skillName = skill->name[i];
+ char const* skillName = skill->DisplayName[i];
size_t skillLen = strlen(skillName);
if (len > skillLen + 2 && // or of form [Skill Name: Spell Name]
!strncmp(pos, skillName, skillLen) && !strncmp(pos + skillLen, ": ", 2) &&
@@ -255,7 +255,7 @@ struct LinkValidator<LinkTags::glyph>
{
static bool IsTextValid(GlyphLinkData const& data, char const* pos, size_t len)
{
- if (SpellInfo const* info = sSpellMgr->GetSpellInfo(data.Glyph->SpellId))
+ if (SpellInfo const* info = sSpellMgr->GetSpellInfo(data.Glyph->SpellID))
return LinkValidator<LinkTags::spell>::IsTextValid(info, pos, len);
return false;
}
@@ -271,7 +271,7 @@ struct LinkValidator<LinkTags::talent>
{
static bool IsTextValid(TalentLinkData const& data, char const* pos, size_t len)
{
- if (SpellInfo const* info = sSpellMgr->GetSpellInfo(data.Talent->RankID[0]))
+ if (SpellInfo const* info = sSpellMgr->GetSpellInfo(data.Talent->SpellRank[0]))
return LinkValidator<LinkTags::spell>::IsTextValid(info, pos, len);
return false;
}