mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Fix incorrect realm access after new beatmap import
This commit is contained in:
parent
64a47ff850
commit
8c3dc4333d
@ -97,9 +97,12 @@ namespace osu.Game.Beatmaps
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var imported = beatmapModelManager.Import(set).GetResultSafely()?.Value;
|
var imported = beatmapModelManager.Import(set).GetResultSafely();
|
||||||
|
|
||||||
return GetWorkingBeatmap(imported?.Beatmaps.First());
|
if (imported == null)
|
||||||
|
throw new InvalidOperationException("Failed to import new beatmap");
|
||||||
|
|
||||||
|
return imported.PerformRead(s => GetWorkingBeatmap(s.Beatmaps.First()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user