mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
- proper destructors for handlers and lib objects
This commit is contained in:
@ -763,6 +763,9 @@ CGameState::~CGameState()
|
||||
//delete initialOpts;
|
||||
delete applierGs;
|
||||
delete objCaller;
|
||||
|
||||
BOOST_FOREACH(auto ptr, hpool.heroesPool) // clean hero pool
|
||||
ptr.second.dellNull();
|
||||
}
|
||||
|
||||
BattleInfo * CGameState::setupBattle(int3 tile, const CArmedInstance *armies[2], const CGHeroInstance * heroes[2], bool creatureBank, const CGTownInstance *town)
|
||||
|
Reference in New Issue
Block a user