mirror of
https://github.com/osukey/osukey.git
synced 2025-06-03 20:07:18 +09:00
Add nullref check in KeyCounterCollection's Add method
This commit is contained in:
parent
4f6c93aa0f
commit
eedfbdc0e8
@ -28,6 +28,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override void Add(KeyCounter key)
|
||||
{
|
||||
if (key == null) throw new ArgumentNullException(nameof(key));
|
||||
|
||||
base.Add(key);
|
||||
key.IsCounting = IsCounting;
|
||||
key.FadeTime = FadeTime;
|
||||
|
Loading…
x
Reference in New Issue
Block a user