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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user