aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-12-21 13:35:43 +0100
committerShauren <shauren.trinity@gmail.com>2014-12-21 13:35:43 +0100
commit6dbb516b651d5d4b1988c7f450b25136b9d28a2e (patch)
treec93bee9c6b5bea94ea403b29089704c308b878f8 /src/server/scripts/World
parent77dc1b00dbf9baedf1785232c83d31e77d7936b3 (diff)
Core/Items: Refactored ItemTemplate
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/npc_professions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/World/npc_professions.cpp b/src/server/scripts/World/npc_professions.cpp
index 3e89041a9e9..32607236f9e 100644
--- a/src/server/scripts/World/npc_professions.cpp
+++ b/src/server/scripts/World/npc_professions.cpp
@@ -247,7 +247,7 @@ bool EquippedOk(Player* player, uint32 spellId)
for (uint8 j = EQUIPMENT_SLOT_START; j < EQUIPMENT_SLOT_END; ++j)
{
item = player->GetItemByPos(INVENTORY_SLOT_BAG_0, j);
- if (item && item->GetTemplate()->RequiredSpell == reqSpell)
+ if (item && item->GetTemplate()->GetRequiredSpell() == reqSpell)
{
//player has item equipped that require specialty. Not allow to unlearn, player has to unequip first
TC_LOG_DEBUG("scripts", "player attempt to unlearn spell %u, but item %u is equipped.", reqSpell, item->GetEntry());