summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/MobSpawner.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/MobSpawner.h b/src/MobSpawner.h
index 941a04a17..14c721ae3 100644
--- a/src/MobSpawner.h
+++ b/src/MobSpawner.h
@@ -7,12 +7,6 @@
-// fwd:
-class cChunk;
-
-
-
-
/** This class is used to determine which monster can be spawned in which place
it is essentially static (eg. Squids spawn in water, Zombies spawn in dark places)
@@ -43,7 +37,7 @@ public :
// return true if there is at least one allowed type
bool CanSpawnAnything(void);
- typedef const std::set<cMonster *> tSpawnedContainer;
+ typedef const std::set<std::unique_ptr<cMonster>> tSpawnedContainer;
tSpawnedContainer & getSpawned(void);
/** Returns true if specified type of mob can spawn on specified block */
@@ -61,7 +55,7 @@ protected :
std::set<eMonsterType> m_AllowedTypes;
bool m_NewPack;
eMonsterType m_MobType;
- std::set<cMonster *> m_Spawned;
+ std::set<std::unique_ptr<cMonster>> m_Spawned;
} ;