@@ -4050,15 +4050,12 @@ bool CClientGame::AssocGroupCopyAnimationHandler ( CAnimBlendStaticAssociationSA
40504050 auto pReplacedAnimation = pClientPed->getReplacedAnimation ( pOriginalAnimStaticAssoc->pAnimHeirarchy );
40514051 if ( pReplacedAnimation != nullptr )
40524052 {
4053- if ( pReplacedAnimation->pIFP ->isIFPLoaded ( ) )
4054- {
4055- std::shared_ptr < CIFPAnimations > pIFPAnimations = pReplacedAnimation->pIFP ->GetIFPAnimationsPointer ();
4056- InsertAnimationAssociationToMap ( pAnimAssoc, pIFPAnimations );
4053+ std::shared_ptr < CIFPAnimations > pIFPAnimations = pReplacedAnimation->pIFP ->GetIFPAnimationsPointer ();
4054+ InsertAnimationAssociationToMap ( pAnimAssoc, pIFPAnimations );
40574055
4058- // Play our custom animation instead of default
4059- CAnimBlendStaticAssociation_Init ( pOutAnimStaticAssoc, pClump, pReplacedAnimation->pAnimationHierarchy );
4060- isCustomAnimationToPlay = true ;
4061- }
4056+ // Play our custom animation instead of default
4057+ CAnimBlendStaticAssociation_Init ( pOutAnimStaticAssoc, pClump, pReplacedAnimation->pAnimationHierarchy );
4058+ isCustomAnimationToPlay = true ;
40624059 }
40634060 }
40644061
@@ -4100,18 +4097,15 @@ bool CClientGame::BlendAnimationHierarchyHandler ( CAnimBlendAssociationSAInterf
41004097 auto pCustomAnimBlendHierarchy = pIFP->GetAnimationHierarchy ( strAnimationName );
41014098 if ( pCustomAnimBlendHierarchy != nullptr )
41024099 {
4103- if ( pIFP->isIFPLoaded ( ) )
4104- {
4105- std::shared_ptr < CIFPAnimations > pIFPAnimations = pIFP->GetIFPAnimationsPointer ();
4106- InsertAnimationAssociationToMap ( pAnimAssoc, pIFPAnimations );
4100+ std::shared_ptr < CIFPAnimations > pIFPAnimations = pIFP->GetIFPAnimationsPointer ();
4101+ InsertAnimationAssociationToMap ( pAnimAssoc, pIFPAnimations );
41074102
4108- pClientPed->setCurrentAnimationCustom ( true );
4109- pClientPed->setNextAnimationNormal ( );
4103+ pClientPed->setCurrentAnimationCustom ( true );
4104+ pClientPed->setNextAnimationNormal ( );
41104105
4111- *pOutAnimHierarchy = pCustomAnimBlendHierarchy;
4112- isCustomAnimationToPlay = true ;
4113- return isCustomAnimationToPlay;
4114- }
4106+ *pOutAnimHierarchy = pCustomAnimBlendHierarchy;
4107+ isCustomAnimationToPlay = true ;
4108+ return isCustomAnimationToPlay;
41154109 }
41164110 else
41174111 {
0 commit comments