mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-31 22:59:54 +02:00
Erase any active windows before deleting guihandler
This commit is contained in:
parent
82f963bc12
commit
977e15d15c
@ -134,6 +134,7 @@ CGuiHandler::~CGuiHandler()
|
|||||||
// enforce deletion order on shutdown
|
// enforce deletion order on shutdown
|
||||||
// all UI elements including adventure map must be destroyed before Gui Handler
|
// all UI elements including adventure map must be destroyed before Gui Handler
|
||||||
// proper solution would be removal of adventureInt global
|
// proper solution would be removal of adventureInt global
|
||||||
|
windowHandlerInstance->clear();
|
||||||
adventureInt.reset();
|
adventureInt.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user