1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fixed memory leak in CCreatureHandler

This commit is contained in:
AlexVinS 2016-08-22 13:27:25 +03:00
parent 63500042e8
commit 111f080639

View File

@ -1116,6 +1116,9 @@ CCreatureHandler::~CCreatureHandler()
{
for(auto & creature : creatures)
creature.dellNull();
for(auto & p : skillRequirements)
vstd::clear_pointer(p.first);
}
CreatureID CCreatureHandler::pickRandomMonster(CRandomGenerator & rand, int tier) const