1
0
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:
Nitrous
2024-01-09 12:24:09 +08:00
Unverified
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);
}
}