1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Some rulesets don't have a beatmap processor

This commit is contained in:
smoogipoo 2018-06-13 21:17:27 +09:00
parent 5e66b02108
commit 8d0e7abdd6

View File

@ -86,7 +86,7 @@ namespace osu.Game.Tests.Beatmaps
var result = new ConvertResult();
var converter = rulesetInstance.CreateBeatmapConverter(beatmap);
List<KeyValuePair<HitObject, IEnumerable<HitObject>>> conversions = new List<KeyValuePair<HitObject, IEnumerable<HitObject>>>();
var conversions = new List<KeyValuePair<HitObject, IEnumerable<HitObject>>>();
converter.ObjectConverted += (orig, converted) =>
{
@ -95,7 +95,7 @@ namespace osu.Game.Tests.Beatmaps
};
IBeatmap convertedBeatmap = converter.Convert();
rulesetInstance.CreateBeatmapProcessor(convertedBeatmap).PostProcess();
rulesetInstance.CreateBeatmapProcessor(convertedBeatmap)?.PostProcess();
foreach (var pair in conversions)
{