mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 08:14:15 +00:00
engine: common: mod_studio: fix uninitialized adj array
This commit is contained in:
parent
375c06400c
commit
7a5381e658
@ -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…
x
Reference in New Issue
Block a user