mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +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