summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-25 14:30:45 -0600
committerJared Adams <jaxad0127@gmail.com>2010-03-25 14:30:45 -0600
commit851c88697ec413ed9ebae80796999c5449f3fece (patch)
tree84948813126301bbc38053127b3afac5b676bcb5 /src/gui/inventorywindow.cpp
parentf781215c6401343d287798b58b08183e71ef57e3 (diff)
downloadmana-851c88697ec413ed9ebae80796999c5449f3fece.tar.gz
mana-851c88697ec413ed9ebae80796999c5449f3fece.tar.bz2
mana-851c88697ec413ed9ebae80796999c5449f3fece.tar.xz
mana-851c88697ec413ed9ebae80796999c5449f3fece.zip
Remove InventoryWindows from their instances list when deleted
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 18705ada..425ac15f 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -143,6 +143,7 @@ InventoryWindow::InventoryWindow(Inventory *inventory, bool isMainInventory):
InventoryWindow::~InventoryWindow()
{
+ instances.remove(this);
mInventory->removeInventoyListener(this);
}