mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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() {
|
||||
if (hud->isInventoryOpen()) {
|
||||
hud->closeInventory();
|
||||
}
|
||||
controller->saveWorld();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue