|
|
@ -209,7 +209,7 @@ namespace MWGui
|
|
|
|
void TradeWindow::sellItem(MyGUI::Widget* sender, int count)
|
|
|
|
void TradeWindow::sellItem(MyGUI::Widget* sender, int count)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const ItemStack& item = mTradeModel->getItem(mItemToSell);
|
|
|
|
const ItemStack& item = mTradeModel->getItem(mItemToSell);
|
|
|
|
std::string sound = item.mBase.getClass().getDownSoundId(item.mBase);
|
|
|
|
std::string sound = item.mBase.getClass().getUpSoundId(item.mBase);
|
|
|
|
MWBase::Environment::get().getWindowManager()->playSound(sound);
|
|
|
|
MWBase::Environment::get().getWindowManager()->playSound(sound);
|
|
|
|
|
|
|
|
|
|
|
|
TradeItemModel* playerTradeModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getTradeModel();
|
|
|
|
TradeItemModel* playerTradeModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getTradeModel();
|
|
|
|