1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 22:17:46 +08:00

Add nullref check in KeyCounterCollection's Add method

This commit is contained in:
Dean Herbert 2017-09-11 11:41:09 +09:00
parent 4f6c93aa0f
commit eedfbdc0e8

View File

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