Apply review

This commit is contained in:
Dean Herbert
2018-11-30 18:06:48 +09:00
parent 9718e476c7
commit 059e9e180b
4 changed files with 10 additions and 5 deletions

View File

@ -119,8 +119,11 @@ namespace osu.Game.Online.API.Requests.Responses
{
base.Ruleset = value;
// Evaluate the mod string
Mods = Ruleset.CreateInstance().GetAllMods().Where(mod => modStrings.Contains(mod.Acronym)).ToArray();
if (modStrings != null)
{
// Evaluate the mod string
Mods = Ruleset.CreateInstance().GetAllMods().Where(mod => modStrings.Contains(mod.Acronym)).ToArray();
}
}
}
}