mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +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)
|
for(auto & creature : creatures)
|
||||||
creature.dellNull();
|
creature.dellNull();
|
||||||
|
|
||||||
|
for(auto & p : skillRequirements)
|
||||||
|
vstd::clear_pointer(p.first);
|
||||||
}
|
}
|
||||||
|
|
||||||
CreatureID CCreatureHandler::pickRandomMonster(CRandomGenerator & rand, int tier) const
|
CreatureID CCreatureHandler::pickRandomMonster(CRandomGenerator & rand, int tier) const
|
||||||
|
Loading…
Reference in New Issue
Block a user