fix stale pointer left in ActorFrame causes crash cancelling out of PlayerOptions

This commit is contained in:
Chris Danford
2005-03-21 05:16:28 +00:00
parent e45b39db16
commit aa1e0d1f76
+3 -4
View File
@@ -16,14 +16,13 @@ void Transition::Load( CString sBGAniDir )
if( IsADirectory(sBGAniDir) && sBGAniDir.Right(1) != "/" )
sBGAniDir += "/";
bool bWasLoaded = m_sprTransition.IsLoaded();
this->RemoveAllChildren();
m_sprTransition.Load( sBGAniDir );
m_sprTransition->PlayCommand( "On" );
this->AddChild( m_sprTransition );
m_fLengthSeconds = m_sprTransition->GetTweenTimeLeft();
if( !bWasLoaded )
this->AddChild( m_sprTransition );
m_State = waiting;
// load sound from file specified by ini, or use the first sound in the directory