Browse Source

engine: common: mod_studio: fix uninitialized adj array

pull/2/head
Alibek Omarov 2 years ago
parent
commit
7a5381e658
  1. 1
      engine/common/mod_studio.c

1
engine/common/mod_studio.c

@ -383,6 +383,7 @@ static void Mod_StudioCalcRotations( int boneused[], int numbones, const byte *p @@ -383,6 +383,7 @@ static void Mod_StudioCalcRotations( int boneused[], int numbones, const byte *p
// add in programtic controllers
pbone = (mstudiobone_t *)((byte *)mod_studiohdr + mod_studiohdr->boneindex);
memset( adj, 0, sizeof( adj ));
Mod_StudioCalcBoneAdj( adj, pcontroller );
for( j = numbones - 1; j >= 0; j-- )

Loading…
Cancel
Save