mirror of https://github.com/ppy/osu
Fix potential missing ruleset
This commit is contained in:
parent
aca4110e36
commit
6b7f05740e
|
@ -176,6 +176,9 @@ private BindableStarDifficulty createBindable([NotNull] BeatmapInfo beatmapInfo,
|
|||
/// <returns>The <see cref="StarDifficulty"/>.</returns>
|
||||
private StarDifficulty computeDifficulty(in DifficultyCacheLookup key, BeatmapInfo beatmapInfo, RulesetInfo rulesetInfo)
|
||||
{
|
||||
// In the case that the user hasn't given us a ruleset, use the beatmap's default ruleset.
|
||||
rulesetInfo ??= beatmapInfo.Ruleset;
|
||||
|
||||
try
|
||||
{
|
||||
var ruleset = rulesetInfo.CreateInstance();
|
||||
|
|
Loading…
Reference in New Issue