fix: overlay 'on_close' not called on window close

This commit is contained in:
MihailRis 2024-07-29 21:04:27 +03:00
parent 8f26397e56
commit c50f564b80

View File

@ -170,6 +170,9 @@ void LevelScreen::draw(float delta) {
}
void LevelScreen::onEngineShutdown() {
if (hud->isInventoryOpen()) {
hud->closeInventory();
}
controller->saveWorld();
}