diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 01:20:48 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 01:20:48 +0000 |
commit | 78ab0ec914d3c5a97f162905afb3dede53f8b9ed (patch) | |
tree | 53e386c28d5621535c76c35c20f28b7dd6235ee3 /src/localplayer.h | |
parent | 3bd2abeeffe9fb9b23293975b159ee2ddc868e5b (diff) | |
download | mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.gz mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.bz2 mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.xz mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.zip |
Use std::auto_ptr in some places.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 6 |
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; |