1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 11:22:57 +08:00

no longer crash if the restart sample isn't found

This commit is contained in:
BananeVolante 2020-06-13 10:13:41 +02:00
parent e8db2cfd6d
commit 6fd8548f79

View File

@ -165,7 +165,7 @@ namespace osu.Game.Screens.Play
sampleRestart = audio.Samples.Get(@"Gameplay/restart");
samplePause = audio.Samples.Get(@"Gameplay/pause-loop");
samplePause.Looping = true;
if(samplePause != null) { samplePause.Looping = true; }
mouseWheelDisabled = config.GetBindable<bool>(OsuSetting.MouseDisableWheel);