1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:02:54 +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:
Dean Herbert 2022-11-08 13:29:25 +09:00
parent 49f530910c
commit b764d1bd04

View File

@ -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)