aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/ChatLink.cpp
diff options
context:
space:
mode:
authorShocker <shocker@freakz.ro>2015-01-05 23:49:43 +0200
committerShocker <shocker@freakz.ro>2015-01-05 23:49:43 +0200
commite99411e40538d2c6598a8a5deabd5b0b3b14bb32 (patch)
tree8f3a72c925b62b9e2f70e44a156496e410f5a4bc /src/server/game/Chat/ChatLink.cpp
parent77bf34e8d53f4e38d8570b4dec25c134868387fc (diff)
Core/Spells: Implement HasAttribute() helper for SpellInfo for easier readability
Diffstat (limited to 'src/server/game/Chat/ChatLink.cpp')
-rw-r--r--src/server/game/Chat/ChatLink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Chat/ChatLink.cpp b/src/server/game/Chat/ChatLink.cpp
index d3844a6ce5d..640127b235b 100644
--- a/src/server/game/Chat/ChatLink.cpp
+++ b/src/server/game/Chat/ChatLink.cpp
@@ -283,7 +283,7 @@ bool SpellChatLink::ValidateName(char* buffer, const char* context)
ChatLink::ValidateName(buffer, context);
// spells with that flag have a prefix of "$PROFESSION: "
- if (_spell->Attributes & SPELL_ATTR0_TRADESPELL)
+ if (_spell->HasAttribute(SPELL_ATTR0_TRADESPELL))
{
SkillLineAbilityMapBounds bounds = sSpellMgr->GetSkillLineAbilityMapBounds(_spell->Id);
if (bounds.first == bounds.second)