1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

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

This commit is contained in:
Ivan Savenko
2023-04-20 19:56:35 +03:00
parent f245080cba
commit 24c6587072
2 changed files with 2 additions and 0 deletions

View File

@ -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();