diff options
Diffstat (limited to 'demos/3rdparty/doom/i_main.c')
-rw-r--r-- | demos/3rdparty/doom/i_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/3rdparty/doom/i_main.c b/demos/3rdparty/doom/i_main.c index 0c618a5b..5c40432a 100644 --- a/demos/3rdparty/doom/i_main.c +++ b/demos/3rdparty/doom/i_main.c @@ -6,13 +6,12 @@ #include "d_main.h" // Emulate a command line -static int argc = 1; -static const char * const *argv = { "doom", }; +static const char const *argv[] = { "doom" }; int main(void) { gfxInit(); - myargc = argc; + myargc = sizeof(argv)/sizeof(argv[0]); myargv = argv; D_DoomMain(); } |