fix assert double-loading the static song background
This commit is contained in:
@@ -643,8 +643,12 @@ void BackgroundImpl::LoadFromSong( const Song* pSong )
|
|||||||
|
|
||||||
if( bStaticBackgroundUsed )
|
if( bStaticBackgroundUsed )
|
||||||
{
|
{
|
||||||
bool bSuccess = mainlayer.CreateBackground( m_pSong, STATIC_BACKGROUND_DEF );
|
bool bIsAlreadyLoaded = mainlayer.m_BGAnimations.find(STATIC_BACKGROUND_DEF) != mainlayer.m_BGAnimations.end();
|
||||||
ASSERT( bSuccess );
|
if( !bIsAlreadyLoaded )
|
||||||
|
{
|
||||||
|
bool bSuccess = mainlayer.CreateBackground( m_pSong, STATIC_BACKGROUND_DEF );
|
||||||
|
ASSERT( bSuccess );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user