mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Fix potential nullref when exiting multiplayer (#4227)
Fixes https://github.com/ppy/osu/issues/3954
This commit is contained in:
parent
7ee8115eaa
commit
959b1ac845
@ -218,7 +218,7 @@ namespace osu.Game.Screens.Multi
|
||||
|
||||
private void cancelLooping()
|
||||
{
|
||||
var track = beatmap.Value.Track;
|
||||
var track = beatmap?.Value?.Track;
|
||||
if (track != null)
|
||||
track.Looping = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user