mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
feat: add delayed scene destruction to prevent null references
This commit is contained in:
@@ -102,5 +102,10 @@ void GameApplication::run() {
|
||||
m_windowManager->endUI();
|
||||
|
||||
m_windowManager->Present();
|
||||
cleanup();
|
||||
}
|
||||
|
||||
|
||||
void GameApplication::cleanup() {
|
||||
m_sceneManager->destoryQuitedScene();
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ private:
|
||||
std::unique_ptr<UIRenderer> m_uiRenderer;
|
||||
std::unique_ptr<DebugManager> m_debugManager;
|
||||
Config m_config;
|
||||
|
||||
void cleanup();
|
||||
|
||||
public:
|
||||
GameApplication();
|
||||
|
||||
Reference in New Issue
Block a user