mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
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:
parent
df41c9461d
commit
34ea2f2292
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue