mirror of https://github.com/ppy/osu
Fix infinite loop when importing maps that have storyboard elements with '$' in the filename
This commit is contained in:
parent
a8cf7ff93a
commit
64d92c1557
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue