]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed swapintblock loop to hopefully get rid of a gcc 3.0 warning
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Nov 2001 02:23:00 +0000 (02:23 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Nov 2001 02:23:00 +0000 (02:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1009 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index b7d53baefc7e08100394ea5ffd989fdf1e0024c3..103260262fe2dbb7880f3c63d9e1782ccfb17fcd 100644 (file)
@@ -851,7 +851,7 @@ void Mod_LoadQ2AliasModel (model_t *mod, void *buffer)
 // move the complete, relocatable alias model to the cache
        end = Hunk_LowMark ();
        mod->cachesize = total = end - start;
-       
+
        Cache_Alloc (&mod->cache, total, loadname);
        if (!mod->cache.data)
                return;
@@ -864,7 +864,10 @@ void swapintblock(int *m, int size)
 {
        size /= 4;
        while(size--)
-               *m++ = BigLong(*m);
+       {
+               *m = BigLong(*m);
+               m++;
+       }
 }
 
 void Mod_LoadZymoticModel (model_t *mod, void *buffer)