Ver código fonte

#2993 - destruct battle info first when destruction CGameState

Andrii Danylchenko 2 anos atrás
pai
commit
4d6d64837f
1 arquivos alterados com 1 adições e 0 exclusões
  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();
 }