1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

- proper destructors for handlers and lib objects

This commit is contained in:
Ivan Savenko
2013-04-21 16:38:31 +00:00
parent 2ea1051395
commit 4db13ba845
13 changed files with 79 additions and 10 deletions

View File

@@ -1002,6 +1002,8 @@ int CCreatureHandler::stringToNumber(std::string & s)
CCreatureHandler::~CCreatureHandler()
{
BOOST_FOREACH(auto & creature, creatures)
creature.dellNull();
}
CreatureID CCreatureHandler::pickRandomMonster(const boost::function<int()> &randGen, int tier) const