Fix infinite loop when importing maps that have storyboard elements with '$' in the filename

This commit is contained in:
MillhioreF 2017-08-09 23:31:18 -05:00
parent a8cf7ff93a
commit 64d92c1557
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ private void handleDifficulty(Beatmap beatmap, string line)
/// <param name="line">The line which may contains variables.</param>
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++)