mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +00:00
Update tradewindow.cpp
Additional check
This commit is contained in:
parent
4ce8c1e1ab
commit
ce54edf011
@ -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…
x
Reference in New Issue
Block a user