1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 07:09:54 +08:00

Fix potential null dereference in CatchPlayfield

This commit is contained in:
Bartłomiej Dach
2022-11-30 20:01:11 +01:00
Unverified
parent 6ebde9a747
commit 285248d554
+1 -1
View File
@@ -55,7 +55,7 @@ namespace osu.Game.Rulesets.Catch.UI
protected override GameplayCursorContainer CreateCursor()
{
if (Mods.Any(m => m is ModRelax))
if (Mods != null && Mods.Any(m => m is ModRelax))
return new CatchRelaxCursorContainer();
return base.CreateCursor();