summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
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/gui/windows/inventorywindow.cpp
parent5fb0dc3d424a869597a34cbe200ad6aa38c16d5a (diff)
downloadmanaverse-664131c51126d33e6e1fca7d9da09bc67016e450.tar.gz
manaverse-664131c51126d33e6e1fca7d9da09bc67016e450.tar.bz2
manaverse-664131c51126d33e6e1fca7d9da09bc67016e450.tar.xz
manaverse-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.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