move assert to the right place

This commit is contained in:
Glenn Maynard
2006-06-24 00:50:08 +00:00
parent c5f4baa121
commit b1fdee1bad
+3 -3
View File
@@ -512,6 +512,9 @@ Screen* ScreenManager::MakeNewScreen( const RString &sScreenName )
LOG->Trace( "Loaded '%s' ('%s') in %f", sScreenName.c_str(), sClassName.c_str(), t.GetDeltaTime() );
// Screens may not call SetNewScreen from the ctor or Init().
ASSERT_M( m_sDelayedScreen.empty(), m_sDelayedScreen );
return ret;
}
@@ -634,9 +637,6 @@ Screen *ScreenManager::ActivatePreparedScreenAndBackground( const RString &sScre
if( !GetPreppedScreen(sScreenName, ls) )
return NULL;
// Screens may not call SetNewScreen from the ctor or Init().
ASSERT_M( m_sDelayedScreen.empty(), m_sDelayedScreen );
// Find the prepared shared background (if any), and activate it.
RString sNewBGA = THEME->GetPathB(sScreenName,"background");
if( sNewBGA != g_pSharedBGA->GetName() )