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:
parent
63500042e8
commit
111f080639
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user