]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_alias.c
work around gcc lacking support for no-size arrays in structures
[xonotic/darkplaces.git] / model_alias.c
index 2f7b5f2409e90ec8f35ffd1dc5a4d7face22e104..d4fe29716cb2ca922009129b81e597a9675eef69 100644 (file)
@@ -722,7 +722,7 @@ void Mod_LoadQ2AliasModel (model_t *mod, void *buffer)
        mod->type = mod_alias;
        mod->aliastype = ALIASTYPE_MD2;
 
-       framesize = sizeof(md2memframe_t) + LittleLong(pinmodel->num_xyz) * sizeof(trivert2);
+       framesize = sizeof(md2memframesize_t) + LittleLong(pinmodel->num_xyz) * sizeof(trivert2);
        // LordHavoc: calculate size for in memory version
        size = sizeof(md2mem_t)
                 + LittleLong(pinmodel->num_st) * sizeof(md2stvert_t)