mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +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++;
|
pr_file_p++;
|
||||||
if (!*pr_file_p)
|
if (!*pr_file_p)
|
||||||
PR_ParseError ("Unexpected end of file");
|
PR_ParseError ("Unexpected end of file");
|
||||||
m = false;
|
pr_source_line = line - (m != false);
|
||||||
pr_source_line = line - 1;
|
|
||||||
s_file = ReuseString (pr_immediate_string);
|
s_file = ReuseString (pr_immediate_string);
|
||||||
|
if (!m)
|
||||||
|
pr_file_p++;
|
||||||
|
m = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_source_line++;
|
pr_source_line++;
|
||||||
|
|
Loading…
Reference in a new issue