mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fixed memory leak in CCreatureHandler
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user