mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-30 07:41:16 +00:00
Always initialize joint_names in R_LoadIQM
Reported by MAN-AT-ARMS
This commit is contained in:
parent
9a752ce8cd
commit
98dda7758f
2 changed files with 4 additions and 2 deletions
|
@ -338,6 +338,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
|
||||
|
@ -346,7 +348,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 );
|
||||
|
|
|
@ -338,6 +338,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
|
||||
|
@ -346,7 +348,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 );
|
||||
|
|
Loading…
Reference in a new issue