Description
The physics doesn't stop and clear itself properly after hitting the Stop button. This is due to improper scene deletion when stopping the game. Might be a deletion's order issue due to std::unique_ptr<Scene> m_currentScene in SceneManager.
The crash only appears when closing Overload editor.
Introduced by #369.
Expected behavior
The physics should stop and clear properly before deleting the scene.
Description
The physics doesn't stop and clear itself properly after hitting the Stop button. This is due to improper scene deletion when stopping the game. Might be a deletion's order issue due to
std::unique_ptr<Scene> m_currentSceneinSceneManager.The crash only appears when closing Overload editor.
Introduced by #369.
Expected behavior
The physics should stop and clear properly before deleting the scene.