Use get_strref() correctly

I had forgotten that it works only for dynamic strings.
This commit is contained in:
Bill Currie 2020-02-27 02:07:53 +09:00
parent c9186c8296
commit 789f263855

View file

@ -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;
}