Fix crashes.
This commit is contained in:
@@ -85,7 +85,7 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
|
|||||||
|
|
||||||
if( pSong == NULL)
|
if( pSong == NULL)
|
||||||
{
|
{
|
||||||
LOG->Trace("Can't find song %s", SongTitle);
|
LOG->Trace("Can't find song %s", SongTitle.c_str());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,6 +136,8 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
|
|||||||
|
|
||||||
DisplayedSong.MakeUpper();
|
DisplayedSong.MakeUpper();
|
||||||
SongEntry *pSong = GAMESTATE->m_pUnlockingSys->FindLockEntry(DisplayedSong);
|
SongEntry *pSong = GAMESTATE->m_pUnlockingSys->FindLockEntry(DisplayedSong);
|
||||||
|
if ( pSong == NULL )
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Reset zoom before using SetTextMaxWidth. */
|
/* Reset zoom before using SetTextMaxWidth. */
|
||||||
text->SetZoom(ScrollingTextZoom);
|
text->SetZoom(ScrollingTextZoom);
|
||||||
|
|||||||
Reference in New Issue
Block a user