diff options
Diffstat (limited to '')
-rw-r--r-- | src/MobSpawner.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/MobSpawner.h b/src/MobSpawner.h index c396637d5..14c721ae3 100644 --- a/src/MobSpawner.h +++ b/src/MobSpawner.h @@ -37,10 +37,8 @@ public : // return true if there is at least one allowed type bool CanSpawnAnything(void); - std::vector<std::unique_ptr<cMonster>> & getSpawned(void) - { - return m_Spawned; - } + typedef const std::set<std::unique_ptr<cMonster>> tSpawnedContainer; + tSpawnedContainer & getSpawned(void); /** 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); @@ -57,7 +55,7 @@ protected : std::set<eMonsterType> m_AllowedTypes; bool m_NewPack; eMonsterType m_MobType; - std::vector<std::unique_ptr<cMonster>> m_Spawned; + std::set<std::unique_ptr<cMonster>> m_Spawned; } ; |