fix in npc trade
This commit is contained in:
parent
f589e6a786
commit
519a52910e
|
@ -860,14 +860,14 @@ void Game::buyItem(const ItemPtr& item, int amount, bool ignoreCapacity, bool bu
|
|||
{
|
||||
if(!canPerformGameAction() || !item)
|
||||
return;
|
||||
m_protocolGame->sendBuyItem(item->getId(), item->getCountOrSubType(), amount, ignoreCapacity, buyWithBackpack);
|
||||
m_protocolGame->sendBuyItem(item->getId(), item->getSubType(), amount, ignoreCapacity, buyWithBackpack);
|
||||
}
|
||||
|
||||
void Game::sellItem(const ItemPtr& item, int amount, bool ignoreEquipped)
|
||||
{
|
||||
if(!canPerformGameAction() || !item)
|
||||
return;
|
||||
m_protocolGame->sendSellItem(item->getId(), item->getCountOrSubType(), amount, ignoreEquipped);
|
||||
m_protocolGame->sendSellItem(item->getId(), item->getSubType(), amount, ignoreEquipped);
|
||||
}
|
||||
|
||||
void Game::closeNpcTrade()
|
||||
|
|
Loading…
Reference in New Issue