give serverRole a default value.

This commit is contained in:
ehouse 2008-08-27 12:08:07 +00:00
parent 5588ed30ad
commit 07e7032c16

View file

@ -267,6 +267,7 @@ gi_initPlayerInfo( MPFORMAL CurGameInfo* gi, const XP_UCHAR* nameTemplate )
XP_U16 i;
XP_MEMSET( gi, 0, sizeof(*gi) );
gi->serverRole = SERVER_STANDALONE;
gi->nPlayers = 2;
gi->boardSize = 15;
gi->robotSmartness = SMART_ROBOT;