fix crash

This commit is contained in:
Glenn Maynard
2006-01-15 19:17:50 +00:00
parent 735a198c06
commit 40ce1c2356
+2 -2
View File
@@ -31,6 +31,8 @@ ScreenUnlock::ScreenUnlock( CString sClassName ) : ScreenAttract( sClassName )
void ScreenUnlock::Init()
{
ScreenAttract::Init();
unsigned iNumUnlocks = UNLOCKMAN->m_UnlockEntries.size();
if( !PREFSMAN->m_bUseUnlockSystem || iNumUnlocks == 0 )
@@ -39,8 +41,6 @@ void ScreenUnlock::Init()
return;
}
ScreenAttract::Init();
unsigned NumUnlocks = UNLOCKMAN->m_UnlockEntries.size();
PointsUntilNextUnlock.LoadFromFont( THEME->GetPathF("Common","normal") );