summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 3107657c..cd4809fb 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -24,6 +24,8 @@
#ifndef _TMW_LOCALPLAYER_H
#define _TMW_LOCALPLAYER_H
+#include <memory.h>
+
#include "player.h"
// TODO move into some sane place...
@@ -141,8 +143,8 @@ class LocalPlayer : public Player
float lastAttackTime; /**< Used to synchronize the charge dialog */
- Inventory *mInventory;
- Equipment *mEquipment;
+ std::auto_ptr<Inventory> mInventory;
+ std::auto_ptr<Equipment> mEquipment;
protected:
Network *mNetwork;