From a880f331521ed0f2a9f1fb82e04998acf0697160 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 11 May 2012 15:25:22 +0900 Subject: [PATCH] Set the model type for iqm. Forgot this rather important step :P --- libs/models/iqm/model_iqm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/models/iqm/model_iqm.c b/libs/models/iqm/model_iqm.c index 3c1f17653..ff0ce7d99 100644 --- a/libs/models/iqm/model_iqm.c +++ b/libs/models/iqm/model_iqm.c @@ -503,6 +503,7 @@ Mod_LoadIQM (model_t *mod, void *buffer) iqm->text = malloc (hdr->num_text); memcpy (iqm->text, (byte *) buffer + hdr->ofs_text, hdr->num_text); mod->aliashdr = (aliashdr_t *) iqm; + mod->type = mod_iqm; if (hdr->num_meshes && !load_iqm_meshes (mod, hdr, (byte *) buffer)) Sys_Error ("%s: error loading meshes", loadname); if (hdr->num_anims && !load_iqm_anims (mod, hdr, (byte *) buffer))