summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/inventorywindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 91acbb00..89ef8682 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -359,6 +359,9 @@ void InventoryWindow::event(const std::string &channel, const Mana::Event &event
void InventoryWindow::updateWeight()
{
+ if (!isMainInventory())
+ return;
+
int total = PlayerInfo::getAttribute(TOTAL_WEIGHT);
int max = PlayerInfo::getAttribute(MAX_WEIGHT);