From 6714a244e83f6a43c462dc47ad7f1373b16323af Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Mon, 22 May 2017 10:23:08 +0900 Subject: [PATCH] Add check before possibly going into endless loop. --- .../Beatmaps/Patterns/Legacy/EndTimeObjectPatternGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Mania/Beatmaps/Patterns/Legacy/EndTimeObjectPatternGenerator.cs b/osu.Game.Rulesets.Mania/Beatmaps/Patterns/Legacy/EndTimeObjectPatternGenerator.cs index 1956361f5c..8f438f9ff4 100644 --- a/osu.Game.Rulesets.Mania/Beatmaps/Patterns/Legacy/EndTimeObjectPatternGenerator.cs +++ b/osu.Game.Rulesets.Mania/Beatmaps/Patterns/Legacy/EndTimeObjectPatternGenerator.cs @@ -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;