mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Add check before possibly going into endless loop.
This commit is contained in:
parent
2d11a8bdf0
commit
6714a244e8
@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
else
|
else
|
||||||
addToPattern(pattern, getNextRandomColumn(RandomStart), generateHold);
|
addToPattern(pattern, getNextRandomColumn(RandomStart), generateHold);
|
||||||
}
|
}
|
||||||
else
|
else if (AvailableColumns > 0)
|
||||||
addToPattern(pattern, getNextRandomColumn(0), generateHold);
|
addToPattern(pattern, getNextRandomColumn(0), generateHold);
|
||||||
|
|
||||||
return pattern;
|
return pattern;
|
||||||
|
Loading…
Reference in New Issue
Block a user