]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 3d65e72d2e3683989521155a8b533f4e33c02029..ab7de28c4d95f1a99042852480711dfc723ce30f 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;