diff --git a/src/main.cpp b/src/main.cpp index c4295aaa5..2b3cc405c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) if(CKP.shutdown == SHUTDOWN_NEW_GAME) { - if(loadStartMenu(&CKP) == 1) + if(!loadStartMenu(&CKP)) { CKP.shutdown = SHUTDOWN_EXIT; break; diff --git a/src/menu.cpp b/src/menu.cpp index a154b44d1..9c14b65af 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -147,8 +147,7 @@ extern char fade_black; bool loadStartMenu(stCloneKeenPlus *pCKP) { CDialog *GamesMenu; - int i; - bool ret; + bool ret = true; fade.mode = FADE_GO; fade.rate = FADE_NORM; @@ -163,7 +162,7 @@ bool loadStartMenu(stCloneKeenPlus *pCKP) GamesMenu->setDimensions(2,2,36,15); // Show me the games you detected! - for( i=0 ; i < pCKP->numGames ; i++ ) + for( int i=0 ; i < pCKP->numGames ; i++ ) { GamesMenu->addOptionText(pCKP->GameData[i].Name); }