File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Client/mods/deathmatch/logic Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ void CClientIFP::UnloadIFP ( void )
49
49
if ( m_bisIFPLoaded )
50
50
{
51
51
printf (" CClientIFP::UnloadIFP ( ) called!\n " );
52
+
53
+ m_bisIFPLoaded = false ;
52
54
53
55
// first remove IFP from map, so we can indicate that it does not exist
54
56
g_pClientGame->RemoveIFPPointerFromMap ( m_strBlockName );
@@ -1173,11 +1175,14 @@ std::string CClientIFP::getCorrectBoneNameFromName(std::string const& BoneName)
1173
1175
1174
1176
CAnimBlendHierarchySAInterface * CClientIFP::GetAnimationHierarchy ( const SString & strAnimationName )
1175
1177
{
1176
- for ( auto it = m_Animations. begin (); it != m_Animations. end (); ++it)
1177
- {
1178
- if (strAnimationName. ToLower () == it-> Name . ToLower ())
1178
+ if ( m_bisIFPLoaded )
1179
+ {
1180
+ for ( auto it = m_Animations. begin (); it != m_Animations. end (); ++it)
1179
1181
{
1180
- return (CAnimBlendHierarchySAInterface *)&it->Hierarchy ;
1182
+ if (strAnimationName.ToLower () == it->Name .ToLower ())
1183
+ {
1184
+ return (CAnimBlendHierarchySAInterface *)&it->Hierarchy ;
1185
+ }
1181
1186
}
1182
1187
}
1183
1188
return nullptr ;
You can’t perform that action at this time.
0 commit comments