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