Explorar o código

#2993 - destruct battle info first when destruction CGameState

Andrii Danylchenko %!s(int64=2) %!d(string=hai) anos
pai
achega
4d6d64837f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();
 }