From 49c443896dcac8c4eaf08c4024e8bd2366ad899a Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 2 Sep 2017 10:45:06 +0300 Subject: Revert "Replace ItemCallbacks with lambdas (#3948)" This reverts commit 496c337cdfa593654018c171f6a74c28272265b5. --- src/MobSpawner.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/MobSpawner.h') 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> & getSpawned(void) - { - return m_Spawned; - } + typedef const std::set> 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 m_AllowedTypes; bool m_NewPack; eMonsterType m_MobType; - std::vector> m_Spawned; + std::set> m_Spawned; } ; -- cgit v1.2.3