summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-07 15:21:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-07 15:21:46 +0300
commit664131c51126d33e6e1fca7d9da09bc67016e450 (patch)
tree9cada007d5a5a00b4466edf1e9ee177f987beaa6 /src
parent5fb0dc3d424a869597a34cbe200ad6aa38c16d5a (diff)
downloadmanaplus-664131c51126d33e6e1fca7d9da09bc67016e450.tar.gz
manaplus-664131c51126d33e6e1fca7d9da09bc67016e450.tar.bz2
manaplus-664131c51126d33e6e1fca7d9da09bc67016e450.tar.xz
manaplus-664131c51126d33e6e1fca7d9da09bc67016e450.zip
Fix weight bar in inventory and cart windows.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/inventorywindow.cpp2
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