fix in npc trade

This commit is contained in:
Eduardo Bart 2012-04-27 20:51:46 -03:00
parent f589e6a786
commit 519a52910e
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->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()