From 664131c51126d33e6e1fca7d9da09bc67016e450 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 Feb 2015 15:21:46 +0300 Subject: Fix weight bar in inventory and cart windows. --- src/gui/windows/inventorywindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/windows/inventorywindow.cpp') 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 -- cgit v1.2.3-60-g2f50