Fixes a bug where ktpro wasn't being given the correct strings.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1685 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-12-06 23:32:06 +00:00
parent df41c9461d
commit 34ea2f2292

View file

@ -3379,9 +3379,12 @@ char *PF_TempStr(progfuncs_t *prinst)
string_t PR_TempString(progfuncs_t *prinst, char *str)
{
char *tmp = PF_TempStr(prinst);
char *tmp;
if (!str || !*str)
return 0;
tmp = PF_TempStr(prinst);
Q_strncpyz(tmp, str, MAXTEMPBUFFERLEN);
return tmp - prinst->tempstringbase;
return tmp - prinst->stringtable;
}
void PF_InitTempStrings(progfuncs_t *prinst)