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:
parent
cf404b4bcf
commit
7a6b062e72
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user