aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 9bcb0751252..4dec156dfbd 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -218,7 +218,7 @@ void SpellCastTargets::Update(Unit* caster)
// here it is not guid but slot
Player* pTrader = ((Player*)caster)->GetTrader();
if(pTrader && m_itemTargetGUID < TRADE_SLOT_COUNT)
- m_itemTarget = pTrader->GetItemByPos(pTrader->GetItemPosByTradeSlot(m_itemTargetGUID));
+ m_itemTarget = pTrader->GetItemByGuid(m_itemTargetGUID);
}
if(m_itemTarget)
m_itemTargetEntry = m_itemTarget->GetEntry();