mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Add safety check for when no objects have been assigned.
This commit is contained in:
parent
b02eb17ff5
commit
784ca2300b
@ -132,6 +132,9 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (objects == null)
|
||||
return;
|
||||
|
||||
double progress = (AudioClock?.CurrentTime ?? Time.Current) / lastHitTime;
|
||||
|
||||
bar.UpdatePosition((float)progress);
|
||||
|
Loading…
Reference in New Issue
Block a user