mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Check for indice bounds
This commit is contained in:
parent
3a6be342ce
commit
393c2a81d1
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ void skeletor_c::SetPose( const frameInfo_t *frameInfo, const int *contIndices,
|
|||
for( i = 0; i < 5; i++ )
|
||||
{
|
||||
contNum = contIndices[ i ];
|
||||
if( contNum != -1 )
|
||||
if( contNum >= 0 && contNum < m_Tiki->m_boneList.NumChannels() )
|
||||
{
|
||||
cutoff_weight = ( contValues[ i ][ 3 ] - 1.0 ) * ( contValues[ i ][ 3 ] - 1.0 );
|
||||
if( cutoff_weight >= EPSILON )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue