From 0b84e6970943129f3fd76adb052b5bdfe1a27cf0 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Thu, 30 May 2024 20:13:08 -0500 Subject: [PATCH] Flip argn and args in main function (to properly correspond to the main prototype). --- Adventures in Lestoria/AdventuresInLestoria.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index 6f9e63df..668656cc 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -2944,7 +2944,7 @@ bool Steam_Init(){ return false; } -int main(char**args,const int argn) +int main(const int argn,char**args) { debugLogger.open("debug.log"); LOG(std::format("Found {} args",argn)); @@ -3087,8 +3087,8 @@ int main(char**args,const int argn) get_command_line_args( &argc, &argv ); for(int n = 0;n < argc;n++) - printf( " %d : %s\n", n, argv[n] ); - main(argv,argc); + printf( " %d : %s\n", n, argv[n] ); + main(argc,argv); free( argv ); } #endif