forked from ground/ground
Fix function jumping bug (I think)
This commit is contained in:
@@ -1851,9 +1851,8 @@ vector<Instruction> parser(vector<vector<string>> in) {
|
||||
if (processingFunction) {
|
||||
functions[procFnName].localLabels[i.substr(1)] = functionInstructionIndex;
|
||||
} else {
|
||||
labels[i.substr(1)] = lineNum;
|
||||
labels[i.substr(1)] = lineNum - 1;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
else if (i == "stdin") newInst.inst = Instructions::Stdin;
|
||||
else if (i == "stdout") newInst.inst = Instructions::Stdout;
|
||||
|
Reference in New Issue
Block a user