fix: overlay 'on_close' not called on window close
This commit is contained in:
parent
8f26397e56
commit
c50f564b80
@ -170,6 +170,9 @@ void LevelScreen::draw(float delta) {
|
||||
}
|
||||
|
||||
void LevelScreen::onEngineShutdown() {
|
||||
if (hud->isInventoryOpen()) {
|
||||
hud->closeInventory();
|
||||
}
|
||||
controller->saveWorld();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user