summaryrefslogtreecommitdiff
path: root/src/renderergl1/tr_model_iqm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl1/tr_model_iqm.c')
-rw-r--r--src/renderergl1/tr_model_iqm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/renderergl1/tr_model_iqm.c b/src/renderergl1/tr_model_iqm.c
index 7fa4276f..47d618ac 100644
--- a/src/renderergl1/tr_model_iqm.c
+++ b/src/renderergl1/tr_model_iqm.c
@@ -339,6 +339,8 @@ qboolean R_LoadIQM( model_t *mod, void *buffer, int filesize, const char *mod_na
return qfalse;
}
+ joint_names = 0;
+
if ( header->num_joints )
{
// check and swap joints
@@ -347,7 +349,6 @@ qboolean R_LoadIQM( model_t *mod, void *buffer, int filesize, const char *mod_na
return qfalse;
}
joint = (iqmJoint_t *)((byte *)header + header->ofs_joints);
- joint_names = 0;
for( i = 0; i < header->num_joints; i++, joint++ ) {
LL( joint->name );
LL( joint->parent );