1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

Add check before possibly going into endless loop.

This commit is contained in:
smoogipooo 2017-05-22 10:23:08 +09:00
parent 2d11a8bdf0
commit 6714a244e8

View File

@ -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;