mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-28 07:11:35 +00:00
Update tradewindow.cpp
Additional check
This commit is contained in:
parent
4ce8c1e1ab
commit
ce54edf011
1 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,8 @@ namespace MWGui
|
|||
const MWWorld::Store<ESM::GameSetting> &gmst =
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>();
|
||||
|
||||
if (mTotalBalance->getValue() == 0) mCurrentBalance = 0;
|
||||
|
||||
// were there any items traded at all?
|
||||
const std::vector<ItemStack>& playerBought = playerItemModel->getItemsBorrowedToUs();
|
||||
const std::vector<ItemStack>& merchantBought = mTradeModel->getItemsBorrowedToUs();
|
||||
|
|
Loading…
Reference in a new issue