mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Update comment regarding LoadTrack
safety
This commit is contained in:
parent
83703e28e6
commit
952d97c66e
@ -186,7 +186,7 @@ namespace osu.Game.Screens.Edit
|
||||
loadableBeatmap = beatmapManager.CreateNew(Ruleset.Value, api.LocalUser.Value);
|
||||
|
||||
// required so we can get the track length in EditorClock.
|
||||
// this is safe as nothing has yet got a reference to this new beatmap.
|
||||
// this is ONLY safe because the track being provided is a `TrackVirtual` which we don't really care about disposing.
|
||||
loadableBeatmap.LoadTrack();
|
||||
|
||||
// this is a bit haphazard, but guards against setting the lease Beatmap bindable if
|
||||
|
Loading…
Reference in New Issue
Block a user