1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

Erase any active windows before deleting guihandler

This commit is contained in:
Ivan Savenko 2025-02-01 18:09:53 +00:00
parent 82f963bc12
commit 977e15d15c

View File

@ -134,6 +134,7 @@ CGuiHandler::~CGuiHandler()
// enforce deletion order on shutdown
// all UI elements including adventure map must be destroyed before Gui Handler
// proper solution would be removal of adventureInt global
windowHandlerInstance->clear();
adventureInt.reset();
}