fix missing format argument

This commit is contained in:
Chris Cromer 2019-05-01 19:26:15 -04:00
parent 655f62082d
commit 045b5b3c52
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -46,7 +46,7 @@ where [switches] are optionally:\n\
int main( int argc, char **argv ) int main( int argc, char **argv )
{ {
char *gamedir=NULL; char *gamedir=NULL;
tmp[0]=0; tmp[0]=0;
for(int i=1;i<argc;i++){ for(int i=1;i<argc;i++){
@ -58,7 +58,7 @@ int main( int argc, char **argv )
{ {
if(strcmp(argv[i]+1,"help")!=0 && strcmp(argv[i]+1,"-help")!=0) if(strcmp(argv[i]+1,"help")!=0 && strcmp(argv[i]+1,"-help")!=0)
printf( "Unknown parameter.\n\n" ); printf( "Unknown parameter.\n\n" );
printf(help); printf("%s", help);
exit(-2); exit(-2);
} }
} }
@ -71,7 +71,7 @@ int main( int argc, char **argv )
game = new Game(); game = new Game();
menu->show(); menu->show();
if(gamedir){ if(gamedir){
int err = game->open(gamedir); int err = game->open(gamedir);
if(!err)menu->show_resources(); if(!err)menu->show_resources();