fix stale pointer left in ActorFrame causes crash cancelling out of PlayerOptions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user