From cb72b3ffef9ff36dfeb9d974cc2cb0d97a0f9592 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 8 Mar 2009 19:57:27 +0000 Subject: [PATCH] call gi_initPlayerInfo() for defaults when not provided on commandline. --- xwords4/linux/linuxmain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xwords4/linux/linuxmain.c b/xwords4/linux/linuxmain.c index 13bd5c103..ee7e94b5e 100644 --- a/xwords4/linux/linuxmain.c +++ b/xwords4/linux/linuxmain.c @@ -1033,6 +1033,11 @@ main( int argc, char** argv ) mainParams.serverRole = SERVER_ISCLIENT; } + if ( mainParams.needsNewGame ) { + gi_initPlayerInfo( MPPARM(mainParams.util->mpool) + &mainParams.gi, NULL ); + } + /* curses doesn't have newgame dialog */ if ( useCurses && !mainParams.needsNewGame ) { #if defined PLATFORM_NCURSES