Explorar el Código

#2993 - destruct battle info first when destruction CGameState

Andrii Danylchenko hace 2 años
padre
commit
4d6d64837f
Se han modificado 1 ficheros con 1 adiciones y 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();
 }