summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/MobSpawner.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/MobSpawner.h b/src/MobSpawner.h
index 14c721ae3..c396637d5 100644
--- a/src/MobSpawner.h
+++ b/src/MobSpawner.h
@@ -37,8 +37,10 @@ public :
// return true if there is at least one allowed type
bool CanSpawnAnything(void);
- typedef const std::set<std::unique_ptr<cMonster>> tSpawnedContainer;
- tSpawnedContainer & getSpawned(void);
+ std::vector<std::unique_ptr<cMonster>> & getSpawned(void)
+ {
+ return m_Spawned;
+ }
/** Returns true if specified type of mob can spawn on specified block */
static bool CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, eMonsterType a_MobType, EMCSBiome a_Biome);
@@ -55,7 +57,7 @@ protected :
std::set<eMonsterType> m_AllowedTypes;
bool m_NewPack;
eMonsterType m_MobType;
- std::set<std::unique_ptr<cMonster>> m_Spawned;
+ std::vector<std::unique_ptr<cMonster>> m_Spawned;
} ;