summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-07-18 20:12:33 -0400
committerChuck Miller <shadowmil@gmail.com>2010-07-18 20:14:03 -0400
commite3abb4a771b69f1067d6c7f5e0d4c10828f94167 (patch)
tree791b3f5c235b22258e8bc394a33987c084174640 /src/gui/inventorywindow.cpp
parent060b5d24f824de45342c8ea1bab8fc98c08b369d (diff)
downloadmana-client-e3abb4a771b69f1067d6c7f5e0d4c10828f94167.tar.gz
mana-client-e3abb4a771b69f1067d6c7f5e0d4c10828f94167.tar.bz2
mana-client-e3abb4a771b69f1067d6c7f5e0d4c10828f94167.tar.xz
mana-client-e3abb4a771b69f1067d6c7f5e0d4c10828f94167.zip
Fix crash when withdrawing something from storage
Reviewed-by: Jared Adams
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-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);