diff --git a/source/script/parser.c b/source/script/parser.c index e335762..f1207ab 100644 --- a/source/script/parser.c +++ b/source/script/parser.c @@ -127,6 +127,9 @@ u8 nextToken(char** inPtr, void** val) { while (*in && *in != '\n') in++; + + lineNumber++; + scriptCurrentLine = lineNumber; } else if (isValidWord(*in)) { char* startWord = in;