From ba8961ca97a2bda57ad94a8879d5bd445960a35e Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Thu, 8 Nov 2001 02:23:00 +0000 Subject: [PATCH] changed swapintblock loop to hopefully get rid of a gcc 3.0 warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1009 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/model_alias.c b/model_alias.c index b7d53bae..10326026 100644 --- a/model_alias.c +++ b/model_alias.c @@ -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) -- 2.39.2