Fix crashes.

This commit is contained in:
Glenn Maynard
2003-07-28 19:30:40 +00:00
parent db56b757f5
commit f2b1e3e034
+3 -1
View File
@@ -85,7 +85,7 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
if( pSong == NULL)
{
LOG->Trace("Can't find song %s", SongTitle);
LOG->Trace("Can't find song %s", SongTitle.c_str());
continue;
}
@@ -136,6 +136,8 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
DisplayedSong.MakeUpper();
SongEntry *pSong = GAMESTATE->m_pUnlockingSys->FindLockEntry(DisplayedSong);
if ( pSong == NULL )
continue;
/* Reset zoom before using SetTextMaxWidth. */
text->SetZoom(ScrollingTextZoom);