mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Merge pull request #3122 from vcmi/fix-2993
#2993 - destruct battle info first when destructing CGameState
This commit is contained in:
commit
caffc8f3cd
@ -409,6 +409,8 @@ CGameState::CGameState()
|
|||||||
|
|
||||||
CGameState::~CGameState()
|
CGameState::~CGameState()
|
||||||
{
|
{
|
||||||
|
// explicitly delete all ongoing battles first - BattleInfo destructor requires valid CGameState
|
||||||
|
currentBattles.clear();
|
||||||
map.dellNull();
|
map.dellNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user