1
0
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:
Dan Balasescu 2019-02-08 17:28:00 +09:00 committed by Dean Herbert
parent 7ee8115eaa
commit 959b1ac845

View File

@ -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;
}