mirror of
https://github.com/ppy/osu.git
synced 2026-05-26 02:29:54 +08:00
Fix nullref in KeyCounterCollection
This commit is contained in:
@@ -38,7 +38,8 @@ namespace osu.Game.Screens.Play
|
||||
key.FadeTime = FadeTime;
|
||||
key.KeyDownTextColor = KeyDownTextColor;
|
||||
key.KeyUpTextColor = KeyUpTextColor;
|
||||
key.Clock = (IFrameBasedClock)AudioClock;
|
||||
if (AudioClock != null && AudioClock is IFrameBasedClock basedClock)
|
||||
key.Clock = basedClock;
|
||||
}
|
||||
|
||||
public void ResetCount()
|
||||
|
||||
Reference in New Issue
Block a user