1
0
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:
Dean Herbert 2017-04-18 18:09:37 +09:00
parent b02eb17ff5
commit 784ca2300b
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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);