Browse Source

Update lib/gameState/CGameState.cpp

Co-authored-by: Ivan Savenko <[email protected]>
Andrii Danylchenko 2 years ago
parent
commit
25b64dd08b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/gameState/CGameState.cpp

+ 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();
 }