Fix nullref

This commit is contained in:
smoogipoo 2021-04-22 18:44:14 +09:00
parent 1a715b2926
commit 8a6267580a

View File

@ -65,9 +65,11 @@ namespace osu.Game.Scoring
{
get
{
Mod[] scoreMods = Array.Empty<Mod>();
var rulesetInstance = Ruleset?.CreateInstance();
if (rulesetInstance == null)
return mods ?? Array.Empty<Mod>();
var rulesetInstance = Ruleset.CreateInstance();
Mod[] scoreMods = Array.Empty<Mod>();
if (mods != null)
scoreMods = mods;