mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 11:42:54 +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
|
||||
addToPattern(pattern, getNextRandomColumn(RandomStart), generateHold);
|
||||
}
|
||||
else
|
||||
else if (AvailableColumns > 0)
|
||||
addToPattern(pattern, getNextRandomColumn(0), generateHold);
|
||||
|
||||
return pattern;
|
||||
|
Loading…
Reference in New Issue
Block a user