fix BGAnimation crash

This commit is contained in:
Glenn Maynard
2004-01-20 06:01:50 +00:00
parent 5cd8d113b2
commit 614b3d6f3d
+5 -1
View File
@@ -1038,7 +1038,8 @@ void BGAnimationLayer::GainingFocus( float fRate, bool bRewindMovie, bool bLoop
{
m_fUpdateRate = fRate;
ASSERT( m_pActors.size() );
if( !m_pActors.size() )
return;
//
// The order of these actions is important.
@@ -1058,6 +1059,9 @@ void BGAnimationLayer::GainingFocus( float fRate, bool bRewindMovie, bool bLoop
void BGAnimationLayer::LosingFocus()
{
if( !m_pActors.size() )
return;
m_pActors[0]->Command( "pause" );
}