mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 07:32:55 +08:00
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 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
/// <param name="line">The line which may contains variables.</param>
|
/// <param name="line">The line which may contains variables.</param>
|
||||||
private void decodeVariables(ref string line)
|
private void decodeVariables(ref string line)
|
||||||
{
|
{
|
||||||
while (line.IndexOf('$') >= 0)
|
if (line.IndexOf('$') >= 0)
|
||||||
{
|
{
|
||||||
string[] split = line.Split(',');
|
string[] split = line.Split(',');
|
||||||
for (int i = 0; i < split.Length; i++)
|
for (int i = 0; i < split.Length; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user