diff --git a/xwords4/linux/linuxmain.c b/xwords4/linux/linuxmain.c index 065d7cd6a..13de2b6aa 100644 --- a/xwords4/linux/linuxmain.c +++ b/xwords4/linux/linuxmain.c @@ -1498,7 +1498,7 @@ main( int argc, char** argv ) break; #endif case CMD_PLAYERDICT: - mainParams.gi.players[nPlayerDicts++].dictName = optarg; + mainParams.playerDictNames[nPlayerDicts++] = optarg; break; case CMD_SEED: seed = atoi(optarg); @@ -1778,11 +1778,11 @@ main( int argc, char** argv ) } for ( ii = 0; ii < nPlayerDicts; ++ii ) { - XP_UCHAR* name = mainParams.gi.players[ii].dictName; + const XP_UCHAR* name = mainParams.playerDictNames[ii]; if ( !!name ) { mainParams.dicts.dicts[ii] = linux_dictionary_make( MPPARM(mainParams.util->mpool) name, - mainParams.useMmap ); + mainParams.useMmap ); } } diff --git a/xwords4/linux/main.h b/xwords4/linux/main.h index 9f1ddb4d8..b2410b727 100644 --- a/xwords4/linux/main.h +++ b/xwords4/linux/main.h @@ -49,6 +49,7 @@ typedef struct LaunchParams { CurGameInfo gi; PlayerDicts dicts; char* fileName; + const XP_UCHAR* playerDictNames[MAX_NUM_PLAYERS]; #ifdef USE_SQLITE char* dbFileName; XP_U32 dbFileID;