mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10046] Store guids instead slot data for trade items.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
e1766a3adb
commit
6986ecbd9b
5 changed files with 73 additions and 83 deletions
|
|
@ -197,7 +197,7 @@ void SpellCastTargets::Update(Unit* caster)
|
|||
{
|
||||
Player* pTrader = ((Player*)caster)->GetTrader();
|
||||
if(pTrader && m_itemTargetGUID.GetRawValue() < TRADE_SLOT_COUNT)
|
||||
m_itemTarget = pTrader->GetItemByPos(pTrader->GetItemPosByTradeSlot(uint32(m_itemTargetGUID.GetRawValue())));
|
||||
m_itemTarget = pTrader->GetItemByTradeSlot(uint32(m_itemTargetGUID.GetRawValue()));
|
||||
}
|
||||
if(m_itemTarget)
|
||||
m_itemTargetEntry = m_itemTarget->GetEntry();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue