mirror of
https://github.com/ppy/osu
synced 2025-01-10 16:19:47 +00:00
Perform null check on gameplay state.
This commit is contained in:
parent
bb2b7d3c31
commit
2e041823a1
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user