From 7a5381e6585327b0081cb3ad0eebd6ca3f869617 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 17 Feb 2023 22:50:12 +0300 Subject: [PATCH] engine: common: mod_studio: fix uninitialized adj array --- engine/common/mod_studio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/common/mod_studio.c b/engine/common/mod_studio.c index 251c9a0c..504ff415 100644 --- a/engine/common/mod_studio.c +++ b/engine/common/mod_studio.c @@ -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-- )