1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix castel interface closing by turn timer

This commit is contained in:
Andrii Danylchenko 2024-04-06 11:42:39 +03:00
parent 5c40aa8612
commit c7b5d254d7

View File

@ -194,6 +194,11 @@ void CPlayerInterface::playerEndsTurn(PlayerColor player)
GH.windows().popWindows(1);
}
if(castleInt)
castleInt->close();
castleInt = nullptr;
// remove all pending dialogs that do not expect query answer
vstd::erase_if(dialogs, [](const std::shared_ptr<CInfoWindow> & window){
return window->ID == QueryID::NONE;