diff options
author | Dennis Friis <peavey@placid.dk> | 2008-11-06 16:46:18 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-11-06 16:46:18 +0000 |
commit | 87f43f7621dda3071ba189df6975cd0a0595165a (patch) | |
tree | fa5cf0603bbcc4ecb4506dd357124975a8534503 /src/gui/equipmentwindow.h | |
parent | 9475a009e95a3f379a0e97bc66d1aab93ca24b34 (diff) | |
download | mana-client-87f43f7621dda3071ba189df6975cd0a0595165a.tar.gz mana-client-87f43f7621dda3071ba189df6975cd0a0595165a.tar.bz2 mana-client-87f43f7621dda3071ba189df6975cd0a0595165a.tar.xz mana-client-87f43f7621dda3071ba189df6975cd0a0595165a.zip |
Have equipment tied into player inventory instead of keeping its own list of pointers to items. This ensures the ressource is up-to-date and avoids crashes on stale item pointers.
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r-- | src/gui/equipmentwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h index 99a3cc60..c853a039 100644 --- a/src/gui/equipmentwindow.h +++ b/src/gui/equipmentwindow.h @@ -25,6 +25,7 @@ #define _TMW_EQUIPMENT_H #include "window.h" +#include "../inventory.h" class Equipment; @@ -53,6 +54,7 @@ class EquipmentWindow : public Window private: Equipment *mEquipment; + Inventory *inventory; }; extern EquipmentWindow *equipmentWindow; |