mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
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)
|
||||
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)
|
||||
{
|
||||
if(!canPerformGameAction() || !item)
|
||||
return;
|
||||
m_protocolGame->sendSellItem(item->getId(), item->getCount(), amount, ignoreEquipped);
|
||||
m_protocolGame->sendSellItem(item->getId(), item->getCountOrSubType(), amount, ignoreEquipped);
|
||||
}
|
||||
|
||||
void Game::closeNpcTrade()
|
||||
|
Loading…
x
Reference in New Issue
Block a user