diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 15c12de668..b9a42aa2ed 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -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" ); }