fix in npc trade

This commit is contained in:
Eduardo Bart 2012-04-27 20:47:08 -03:00
parent b75483e9bf
commit f589e6a786
1 changed files with 2 additions and 2 deletions

View File

@ -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()