]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix another warning
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 May 2011 19:51:49 +0000 (19:51 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 May 2011 19:51:49 +0000 (19:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11131 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 7b70d223b0bc2e6d83f10d7d9b78215ed6bb8948..0a52aef94ed54b0a249ed7004d0f6451eccdc1b9 100644 (file)
@@ -2150,7 +2150,7 @@ void PRVM_LoadProgs (const char * filename, int numrequiredfunc, const char **re
        if (LittleLong(dprograms->ofs_strings) + prog->progs_numstrings >= (int)filesize)
                PRVM_ERROR ("%s: %s strings go past end of file", PRVM_NAME, filename);
        prog->strings = (char *)Mem_Alloc(prog->progs_mempool, prog->progs_numstrings);
-       memcpy(prog->strings, (char *)dprograms + LittleLong(dprograms->ofs_strings), prog->progs_numstrings);
+       memcpy(prog->strings, instrings, prog->progs_numstrings);
        prog->stringssize = prog->progs_numstrings;
 
        prog->numknownstrings = 0;