Skip to content

Commit b8e6aae

Browse files
authored
Set IsDisposed to true at the end of Scene.Dipose() (#202)
I noticed the Scene.Dispose() does not set IsDisposed = true at the end of the function.
1 parent bfb9dee commit b8e6aae

File tree

1 file changed

+1
-0
lines changed
  • articles/tutorials/building_2d_games/17_scenes/snippets

1 file changed

+1
-0
lines changed

articles/tutorials/building_2d_games/17_scenes/snippets/scene.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ protected virtual void Dispose(bool disposing)
112112
UnloadContent();
113113
Content.Dispose();
114114
}
115+
IsDisposed = true;
115116
}
116117
#endregion
117118
}

0 commit comments

Comments
 (0)