2
0
Эх сурвалжийг харах

Merge pull request #3719 from vcmi/fix-castle-int-closing-by-turntimer

Fix castel interface closing by turn timer
Andrii Danylchenko 1 жил өмнө
parent
commit
1d453a0c9d

+ 5 - 0
client/CPlayerInterface.cpp

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