1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Fix potential null dereference in CatchPlayfield

This commit is contained in:
Bartłomiej Dach 2022-11-30 20:01:11 +01:00
parent 6ebde9a747
commit 285248d554
No known key found for this signature in database

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();