From: sajt Date: Tue, 30 Aug 2005 09:40:02 +0000 (+0000) Subject: Another MSVC error fixed X-Git-Tag: xonotic-v0.1.0preview~4601 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e4a64f985033d6c22d13c74b9b23a08204417352;p=xonotic%2Fdarkplaces.git Another MSVC error fixed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5673 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index bf059c0b..dd41d378 100644 --- a/model_alias.c +++ b/model_alias.c @@ -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);