From c88c734eb2e4b35ccad44463a1b4722bcd0c2855 Mon Sep 17 00:00:00 2001 From: "Jordan \"Heroic\" Hunt" Date: Sat, 8 Nov 2025 08:44:34 -0600 Subject: [PATCH] Set IsDisposed to true at the end of Scene.Dipose() I noticed the Scene.Dispose() does not set IsDisposed = true at the end of the function. --- articles/tutorials/building_2d_games/17_scenes/snippets/scene.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/articles/tutorials/building_2d_games/17_scenes/snippets/scene.cs b/articles/tutorials/building_2d_games/17_scenes/snippets/scene.cs index b31698f0..3b4a50d6 100644 --- a/articles/tutorials/building_2d_games/17_scenes/snippets/scene.cs +++ b/articles/tutorials/building_2d_games/17_scenes/snippets/scene.cs @@ -112,6 +112,7 @@ protected virtual void Dispose(bool disposing) UnloadContent(); Content.Dispose(); } + IsDisposed = true; } #endregion }