diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-07 15:21:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-07 15:21:46 +0300 |
commit | 664131c51126d33e6e1fca7d9da09bc67016e450 (patch) | |
tree | 9cada007d5a5a00b4466edf1e9ee177f987beaa6 /src/gui/windows/inventorywindow.cpp | |
parent | 5fb0dc3d424a869597a34cbe200ad6aa38c16d5a (diff) | |
download | plus-664131c51126d33e6e1fca7d9da09bc67016e450.tar.gz plus-664131c51126d33e6e1fca7d9da09bc67016e450.tar.bz2 plus-664131c51126d33e6e1fca7d9da09bc67016e450.tar.xz plus-664131c51126d33e6e1fca7d9da09bc67016e450.zip |
Fix weight bar in inventory and cart windows.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 59c82a20a..d1ac4ba7b 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -803,7 +803,7 @@ void InventoryWindow::updateWeight() if (type != InventoryType::INVENTORY && type != InventoryType::CART) return; - const bool isInv = type != InventoryType::INVENTORY; + const bool isInv = type == InventoryType::INVENTORY; const int total = PlayerInfo::getAttribute(isInv ? Attributes::TOTAL_WEIGHT : Attributes::CART_TOTAL_WEIGHT); const int max = PlayerInfo::getAttribute(isInv |