summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/quake/model.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/quake/model.c')
-rw-r--r--apps/plugins/sdl/progs/quake/model.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/sdl/progs/quake/model.c b/apps/plugins/sdl/progs/quake/model.c
index 4c16c7f0f5..5ac6dc6cb2 100644
--- a/apps/plugins/sdl/progs/quake/model.c
+++ b/apps/plugins/sdl/progs/quake/model.c
@@ -1165,7 +1165,11 @@ void Mod_LoadBrushModel (model_t *mod, void *buffer)
1165 mod_base = (byte *)header; 1165 mod_base = (byte *)header;
1166 1166
1167 for (i=0 ; i<sizeof(dheader_t)/4 ; i++) 1167 for (i=0 ; i<sizeof(dheader_t)/4 ; i++)
1168 ((int *)header)[i] = LittleLongUnaligned ( ((int *)header)[i]); 1168 {
1169 int before = ((int*)header)[i];
1170 ((int *)header)[i] = LittleLongUnaligned ( ((int *)header) [i]);
1171 assert(((int*)header)[i] == before); // sanity check of our *Unaligned routines
1172 }
1169 1173
1170// load into heap 1174// load into heap
1171 1175