fix for the writetofile builtin. This builtin should work now.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4151 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-11-20 18:49:57 +00:00
parent 9552e7fb64
commit 705e1ab0e0
1 changed files with 1 additions and 1 deletions

View File

@ -1525,7 +1525,7 @@ void QCBUILTIN PF_loadfromfile (progfuncs_t *prinst, struct globalvars_s *pr_glo
void QCBUILTIN PF_writetofile(progfuncs_t *prinst, struct globalvars_s *pr_globals)
{
int fnum = G_FLOAT(OFS_PARM0);
int fnum = G_FLOAT(OFS_PARM0)-FIRST_QC_FILE_INDEX;
void *ed = G_EDICT(prinst, OFS_PARM1);
char buffer[65536];