2
0
Эх сурвалжийг харах

Update lib/gameState/CGameState.cpp

Co-authored-by: Ivan Savenko <[email protected]>
Andrii Danylchenko 2 жил өмнө
parent
commit
25b64dd08b

+ 1 - 0
lib/gameState/CGameState.cpp

@@ -409,6 +409,7 @@ CGameState::CGameState()
 
 CGameState::~CGameState()
 {
+	// explicitly delete all ongoing battles first - BattleInfo destructor requires valid CGameState
 	currentBattles.clear();
 	map.dellNull();
 }