From 64d92c1557badd6e7c4a6e358a9b4b5d8ada13f3 Mon Sep 17 00:00:00 2001 From: MillhioreF Date: Wed, 9 Aug 2017 23:31:18 -0500 Subject: [PATCH] Fix infinite loop when importing maps that have storyboard elements with '$' in the filename --- osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs b/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs index b31e2adee3..39f0a0378c 100644 --- a/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs +++ b/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs @@ -222,7 +222,7 @@ namespace osu.Game.Beatmaps.Formats /// The line which may contains variables. private void decodeVariables(ref string line) { - while (line.IndexOf('$') >= 0) + if (line.IndexOf('$') >= 0) { string[] split = line.Split(','); for (int i = 0; i < split.Length; i++)