From 7a6b062e720c97b2eb6bab34d70575045a9ec6e0 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Tue, 18 Apr 2017 14:48:18 +0900 Subject: [PATCH] Fix adding duplicate hitobjects in the case where a hit object doesn't need to be converted. --- osu.Game/Modes/Beatmaps/BeatmapConverter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Modes/Beatmaps/BeatmapConverter.cs b/osu.Game/Modes/Beatmaps/BeatmapConverter.cs index 545c49e507..c2e5b0affa 100644 --- a/osu.Game/Modes/Beatmaps/BeatmapConverter.cs +++ b/osu.Game/Modes/Beatmaps/BeatmapConverter.cs @@ -59,7 +59,10 @@ namespace osu.Game.Modes.Beatmaps // Check if the hitobject is already the converted type T tObject = original as T; if (tObject != null) + { yield return tObject; + yield break; + } // Convert the hit object foreach (var obj in ConvertHitObject(original, beatmap))