mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-17 21:46:38 +00:00
Update encumbrance unconditionally (#8729)
The flag is only set when items are physically added/removed, which doesn't happen during barter
This commit is contained in:
parent
9b76739489
commit
0eb1a79b00
1 changed files with 2 additions and 1 deletions
|
@ -756,6 +756,8 @@ namespace MWGui
|
|||
|
||||
void InventoryWindow::onFrame(float dt)
|
||||
{
|
||||
updateEncumbranceBar();
|
||||
|
||||
if (mUpdateNextFrame)
|
||||
{
|
||||
if (mTrading)
|
||||
|
@ -766,7 +768,6 @@ namespace MWGui
|
|||
MWBase::Environment::get().getWindowManager()->getTradeWindow()->updateOffer();
|
||||
}
|
||||
|
||||
updateEncumbranceBar();
|
||||
mDragAndDrop->update();
|
||||
mItemView->update();
|
||||
notifyContentChanged();
|
||||
|
|
Loading…
Reference in a new issue