Переглянути джерело

#2993 - destruct battle info first when destruction CGameState

Andrii Danylchenko 2 роки тому
батько
коміт
4d6d64837f
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      lib/gameState/CGameState.cpp

+ 1 - 0
lib/gameState/CGameState.cpp

@@ -409,6 +409,7 @@ CGameState::CGameState()
 
 CGameState::~CGameState()
 {
+	currentBattles.clear();
 	map.dellNull();
 }