mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
PR_SetString doesn't like null pointers, it seems. While fixing
PR_SetString would be a better fix, this is faster code.
This commit is contained in:
parent
2a127dd702
commit
e16a211e1f
1 changed files with 4 additions and 1 deletions
|
@ -154,7 +154,10 @@ bi_Qgetline (progs_t *pr)
|
|||
const char *s;
|
||||
|
||||
s = Qgetline (*h);
|
||||
RETURN_STRING (pr, s);
|
||||
if (s)
|
||||
RETURN_STRING (pr, s);
|
||||
else
|
||||
R_STRING (pr) = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue