1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 02:32:55 +08:00

Fix adding duplicate hitobjects in the case where a hit object doesn't need to be converted.

This commit is contained in:
smoogipooo 2017-04-18 14:48:18 +09:00
parent cf404b4bcf
commit 7a6b062e72

View File

@ -59,7 +59,10 @@ namespace osu.Game.Modes.Beatmaps
// Check if the hitobject is already the converted type // Check if the hitobject is already the converted type
T tObject = original as T; T tObject = original as T;
if (tObject != null) if (tObject != null)
{
yield return tObject; yield return tObject;
yield break;
}
// Convert the hit object // Convert the hit object
foreach (var obj in ConvertHitObject(original, beatmap)) foreach (var obj in ConvertHitObject(original, beatmap))