mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-03 17:42:40 +00:00
fix an out-by-one for line directives at the beginning of the file
This commit is contained in:
parent
c732d098f4
commit
dfb6062f9d
1 changed files with 4 additions and 2 deletions
|
@ -131,9 +131,11 @@ PR_NewLine (void)
|
|||
pr_file_p++;
|
||||
if (!*pr_file_p)
|
||||
PR_ParseError ("Unexpected end of file");
|
||||
m = false;
|
||||
pr_source_line = line - 1;
|
||||
pr_source_line = line - (m != false);
|
||||
s_file = ReuseString (pr_immediate_string);
|
||||
if (!m)
|
||||
pr_file_p++;
|
||||
m = false;
|
||||
}
|
||||
|
||||
pr_source_line++;
|
||||
|
|
Loading…
Reference in a new issue