From e3abb4a771b69f1067d6c7f5e0d4c10828f94167 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Sun, 18 Jul 2010 20:12:33 -0400 Subject: Fix crash when withdrawing something from storage Reviewed-by: Jared Adams --- src/gui/inventorywindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3-70-g09d2