game(hl1): fix SetBoneController

This commit is contained in:
nillerusr
2022-09-03 02:51:56 +03:00
parent 216bbf1baa
commit c91e68975b
3 changed files with 4 additions and 4 deletions
+2 -1
View File
@@ -2743,8 +2743,9 @@ float CBaseAnimating::SetBoneController ( int iController, float flValue )
float newValue;
float retVal = Studio_SetController( pmodel, iController, flValue, newValue );
m_flEncodedController.Set( iController, newValue );
float &val = m_flEncodedController.GetForModify( iController );
val = newValue;
return retVal;
}