]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Another MSVC error fixed
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 30 Aug 2005 09:40:02 +0000 (09:40 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 30 Aug 2005 09:40:02 +0000 (09:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5673 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index bf059c0b37a6a7a718f290d877c108bb320eccfa..dd41d37868d5c2d3e0d70786ec68036a9091d6d6 100644 (file)
@@ -1708,7 +1708,7 @@ void Mod_PSKMODEL_Load(model_t *mod, void *buffer, void *bufferend)
        FS_StripExtension(loadmodel->name, animname, sizeof(animname));
        strlcat(animname, ".psa", sizeof(animname));
        animbuffer = animfilebuffer = FS_LoadFile(animname, loadmodel->mempool, false);
-       animbufferend = animbuffer + fs_filesize;
+       animbufferend = (void *)((unsigned char*)animbuffer + fs_filesize);
        if (animbuffer == NULL)
                Host_Error("%s: can't find .psa file (%s)\n", loadmodel->name, animname);