diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 14:30:45 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 14:30:45 -0600 |
commit | 851c88697ec413ed9ebae80796999c5449f3fece (patch) | |
tree | 84948813126301bbc38053127b3afac5b676bcb5 /src | |
parent | f781215c6401343d287798b58b08183e71ef57e3 (diff) | |
download | mana-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')
-rw-r--r-- | src/gui/inventorywindow.cpp | 1 |
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); } |