mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 07:19:54 +08:00
Perform null check on gameplay state.
This commit is contained in:
@@ -136,7 +136,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
||||
|
||||
void seek(int direction, double amount)
|
||||
{
|
||||
double target = Math.Clamp((gameplayClock?.CurrentTime ?? 0) + (direction * amount), 0, gameplayState.Beatmap.GetLastObjectTime());
|
||||
double target = Math.Clamp((gameplayClock?.CurrentTime ?? 0) + (direction * amount), 0, gameplayState?.Beatmap.GetLastObjectTime() ?? 0);
|
||||
gameplayClock?.Seek(target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user