mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 19:32:55 +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)
|
private void handleEvents(string line)
|
||||||
{
|
{
|
||||||
|
decodeVariables(ref line);
|
||||||
|
|
||||||
int depth = 0;
|
int depth = 0;
|
||||||
|
|
||||||
foreach (char c in line)
|
foreach (char c in line)
|
||||||
@ -91,8 +93,6 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
line = line.Substring(depth);
|
line = line.Substring(depth);
|
||||||
|
|
||||||
decodeVariables(ref line);
|
|
||||||
|
|
||||||
string[] split = line.Split(',');
|
string[] split = line.Split(',');
|
||||||
|
|
||||||
if (depth == 0)
|
if (depth == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user