Slight refactoring

This commit is contained in:
smoogipoo
2019-08-26 17:45:12 +09:00
parent fd4c6e08ca
commit d4a296f911
2 changed files with 13 additions and 9 deletions

View File

@ -98,12 +98,12 @@ namespace osu.Game.Rulesets.Mania.Replays
protected override HitObject GetNextObject(int currentIndex)
{
int desiredColumn = Beatmap.HitObjects[currentIndex++].Column;
int desiredColumn = Beatmap.HitObjects[currentIndex].Column;
for (; currentIndex < Beatmap.HitObjects.Count; currentIndex++)
for (int i = currentIndex + 1; i < Beatmap.HitObjects.Count; i++)
{
if (Beatmap.HitObjects[currentIndex].Column == desiredColumn)
return Beatmap.HitObjects[currentIndex];
if (Beatmap.HitObjects[i].Column == desiredColumn)
return Beatmap.HitObjects[i];
}
return null;