Browse Source

Fixed crash on leaving to main menu from battle in hotseat mode

Ivan Savenko 2 năm trước cách đây
mục cha
commit
24c6587072
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 1 0
      ChangeLog.md
  2. 1 0
      client/Client.cpp

+ 1 - 0
ChangeLog.md

@@ -7,6 +7,7 @@
 * Fixed bad morale happening after waiting
 * Fixed good morale happening after defeating last enemy unit
 * Fixed death animation of Efreeti killed by petrification attack
+* Fixed crash on leaving to main menu from battle in hotseat mode
 * Adventure map spells are no longer visible on units in battle
 * Attempt to cast spell with no valid targets in hotseat will show appropriate error message
 * RMG settings will now show all existing in game templates and not just those suitable for current settings

+ 1 - 0
client/Client.cpp

@@ -374,6 +374,7 @@ void CClient::endGame()
 	//threads cleanup has to be after gs cleanup and before battleints cleanup to stop tacticThread
 	cleanThreads();
 
+	CPlayerInterface::battleInt.reset();
 	playerint.clear();
 	battleints.clear();
 	battleCallbacks.clear();