mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
don't try to copy null string
This commit is contained in:
parent
0cbccc38ad
commit
7ed756810f
1 changed files with 7 additions and 3 deletions
|
@ -38,9 +38,13 @@ TGameInfoBuf::TGameInfoBuf( const CurGameInfo* aGi,
|
||||||
|
|
||||||
for ( i = 0; i < MAX_NUM_PLAYERS; ++i ) {
|
for ( i = 0; i < MAX_NUM_PLAYERS; ++i ) {
|
||||||
iIsRobot[i] = aGi->players[i].isRobot;
|
iIsRobot[i] = aGi->players[i].isRobot;
|
||||||
|
if ( aGi->players[i].name != NULL ) {
|
||||||
TBuf8<32> tmp( aGi->players[i].name );
|
XP_LOGF( "name[%d] = %s", i, aGi->players[i].name );
|
||||||
iPlayerNames[i].Copy( tmp );
|
TBuf8<32> tmp( aGi->players[i].name );
|
||||||
|
iPlayerNames[i].Copy( tmp );
|
||||||
|
} else {
|
||||||
|
iPlayerNames[i].Copy( _L("") );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
iNPlayers = aGi->nPlayers;
|
iNPlayers = aGi->nPlayers;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue