From b6741865f2bb541699d04f128a5389d7b8a4babe Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 20 Oct 2013 14:16:21 +0200 Subject: Fixed memory leak in cMobFamilyCollecter. --- source/MobFamilyCollecter.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'source/MobFamilyCollecter.h') diff --git a/source/MobFamilyCollecter.h b/source/MobFamilyCollecter.h index cd05b6adb..6cef133b5 100644 --- a/source/MobFamilyCollecter.h +++ b/source/MobFamilyCollecter.h @@ -16,16 +16,12 @@ class cChunk; -/** This class is used to collect, for each Mob, what is it's family. It was first -being designed to check the caps of the mobs (no more than ... hostile mob in the world) - -as side effects : it also know what is the spawnrate of each family : MG TODO relocate +/** This class is used to collect the list of mobs for each family */ class cMobFamilyCollecter { public : typedef const std::set tMobFamilyList; - typedef const std::map tMobSpawRate; // collect a mob void CollectMob(cMonster & a_Monster); @@ -33,15 +29,9 @@ public : // return the number of mobs for this family int GetNumberOfCollectedMobs(cMonster::eFamily a_Family); - static tMobFamilyList & m_AllFamilies(void); - - static tMobSpawRate & m_SpawnRate(void); - protected : - std::map > m_Mobs; + std::map > m_Mobs; - static tMobFamilyList InitMobFamilyBeforeCx11(void); - static tMobSpawRate InitMobSpawnRateBeforeCx11(void); } ; -- cgit v1.2.3