mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Fix potential null dereference in CatchPlayfield
This commit is contained in:
parent
6ebde9a747
commit
285248d554
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user