1
0
Fork 0
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:
Alexei Kotov 2025-10-02 08:28:30 +03:00
parent 9b76739489
commit 0eb1a79b00

View file

@ -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();