mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
fix: overlay 'on_close' not called on window close
This commit is contained in:
parent
8f26397e56
commit
c50f564b80
1 changed files with 3 additions and 0 deletions
|
|
@ -170,6 +170,9 @@ void LevelScreen::draw(float delta) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LevelScreen::onEngineShutdown() {
|
void LevelScreen::onEngineShutdown() {
|
||||||
|
if (hud->isInventoryOpen()) {
|
||||||
|
hud->closeInventory();
|
||||||
|
}
|
||||||
controller->saveWorld();
|
controller->saveWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue