mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:52: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
|
||||
T tObject = original as T;
|
||||
if (tObject != null)
|
||||
{
|
||||
yield return tObject;
|
||||
yield break;
|
||||
}
|
||||
|
||||
// Convert the hit object
|
||||
foreach (var obj in ConvertHitObject(original, beatmap))
|
||||
|
Loading…
Reference in New Issue
Block a user