1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:53:21 +08:00

Prevent adding null enumerable

This commit is contained in:
smoogipoo 2021-04-26 15:35:08 +09:00
parent 6182181ea1
commit f70e45b199

View File

@ -172,7 +172,8 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
(actions?.Any(isValidTrackingAction) ?? false);
lastPressedActions.Clear();
lastPressedActions.AddRange(actions);
if (actions != null)
lastPressedActions.AddRange(actions);
}
/// <summary>