1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix freezes while turn ends at hero move

This commit is contained in:
nordsoft
2023-08-14 04:06:26 +04:00
parent e414af221b
commit 0c38187916

View File

@@ -171,6 +171,9 @@ void CPlayerInterface::playerStartsTurn(PlayerColor player)
{
EVENT_HANDLER_CALLED_BY_CLIENT;
makingTurn = false;
stillMoveHero.setn(STOP_MOVE);
if(GH.windows().findWindows<AdventureMapInterface>().empty())
{
// after map load - remove all active windows and replace them with adventure map