Fix Jump if target is in line 1

This commit is contained in:
meinname
2019-04-09 12:52:36 +02:00
committed by GitHub
parent e89b5dbc09
commit 45b9cd9ce0
+1 -1
View File
@@ -304,7 +304,7 @@ namespace RuriLib.LS
try
{
label = LineParser.ParseToken(ref cfLine, TokenType.Label, true);
i = ScanFor(lines, 0, true, new string[] { $"{label}" }) - 1;
i = ScanFor(lines, -1, true, new string[] { $"{label}" }) - 1;
data.LogBuffer.Add(new LogEntry($"Jumping to line {i + 1}", Colors.White));
}
catch { throw new Exception($"No block with label {label} was found"); }