make compile on MSVC
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 30 Aug 2005 07:34:33 +0000 (07:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 30 Aug 2005 07:34:33 +0000 (07:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5671 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 3d65e72..ab7de28 100644 (file)
@@ -189,7 +189,7 @@ model_t *Mod_LoadModel(model_t *mod, qboolean crash, qboolean checkdisk, qboolea
 
        if (buf)
        {
 
        if (buf)
        {
-               char *bufend = buf + fs_filesize;
+               char *bufend = (char *)buf + fs_filesize;
                num = LittleLong(*((int *)buf));
                // call the apropriate loader
                loadmodel = mod;
                num = LittleLong(*((int *)buf));
                // call the apropriate loader
                loadmodel = mod;