1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-15 22:46:36 +00:00

Merge branch 'encucumberance' into 'master'

Update encumbrance unconditionally (#8729)

Closes #8729

See merge request OpenMW/openmw!4934
This commit is contained in:
Alexei Kotov 2025-10-04 11:14:35 +03:00
commit ef05e089ab

View file

@ -756,6 +756,8 @@ namespace MWGui
void InventoryWindow::onFrame(float dt) void InventoryWindow::onFrame(float dt)
{ {
updateEncumbranceBar();
if (mUpdateNextFrame) if (mUpdateNextFrame)
{ {
if (mTrading) if (mTrading)
@ -766,7 +768,6 @@ namespace MWGui
MWBase::Environment::get().getWindowManager()->getTradeWindow()->updateOffer(); MWBase::Environment::get().getWindowManager()->getTradeWindow()->updateOffer();
} }
updateEncumbranceBar();
mDragAndDrop->update(); mDragAndDrop->update();
mItemView->update(); mItemView->update();
notifyContentChanged(); notifyContentChanged();