feat: add delayed scene destruction to prevent null references

This commit is contained in:
2026-01-05 14:29:08 +08:00
parent cc1771f511
commit 2ed0c6445d
4 changed files with 23 additions and 3 deletions

View File

@@ -102,5 +102,10 @@ void GameApplication::run() {
m_windowManager->endUI();
m_windowManager->Present();
cleanup();
}
void GameApplication::cleanup() {
m_sceneManager->destoryQuitedScene();
}