浏览代码

#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();
 }