Przeglądaj źródła

#2993 - destruct battle info first when destruction CGameState

Andrii Danylchenko 2 lat temu
rodzic
commit
4d6d64837f
1 zmienionych plików z 1 dodań i 0 usunięć
  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();
 }