mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
Use get_strref() correctly
I had forgotten that it works only for dynamic strings.
This commit is contained in:
parent
c9186c8296
commit
789f263855
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ get_string (progs_t *pr, string_t num)
|
|||
VISIBLE qboolean
|
||||
PR_StringValid (progs_t *pr, string_t num)
|
||||
{
|
||||
if (num >= 0) {
|
||||
return num < pr->pr_stringsize;
|
||||
}
|
||||
return get_strref (pr->pr_string_resources, num) != 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue