mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Decode variables earlier in flow in case they include indent logic
Without this change, the `depth` calculation could be incorrect.
This commit is contained in:
parent
49f530910c
commit
b764d1bd04
@ -79,6 +79,8 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
private void handleEvents(string line)
|
||||
{
|
||||
decodeVariables(ref line);
|
||||
|
||||
int depth = 0;
|
||||
|
||||
foreach (char c in line)
|
||||
@ -91,8 +93,6 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
line = line.Substring(depth);
|
||||
|
||||
decodeVariables(ref line);
|
||||
|
||||
string[] split = line.Split(',');
|
||||
|
||||
if (depth == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user