Fix error in FindVarUsage resulting in node indexes getting borked

This commit is contained in:
phobos2077
2023-06-09 11:15:11 +02:00
parent e1483a8e44
commit bf164be1fc
+1 -1
View File
@@ -158,7 +158,7 @@ static void FindVarUsage(const Node* node, VarUsage* usage, int varCount) {
}
break;
case T_CALL:
if ((++node)->token == T_SYMBOL && ((var = LookupVariable(node)) != -1)) {
if ((node + 1)->token == T_SYMBOL && ((var = LookupVariable(node + 1)) != -1)) {
MarkVariableRead(usage, var, currstatement, whiledepth);
}
break;