mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +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 ) {
|
||||
iIsRobot[i] = aGi->players[i].isRobot;
|
||||
|
||||
TBuf8<32> tmp( aGi->players[i].name );
|
||||
iPlayerNames[i].Copy( tmp );
|
||||
if ( aGi->players[i].name != NULL ) {
|
||||
XP_LOGF( "name[%d] = %s", i, aGi->players[i].name );
|
||||
TBuf8<32> tmp( aGi->players[i].name );
|
||||
iPlayerNames[i].Copy( tmp );
|
||||
} else {
|
||||
iPlayerNames[i].Copy( _L("") );
|
||||
}
|
||||
}
|
||||
iNPlayers = aGi->nPlayers;
|
||||
|
||||
|
|
Loading…
Reference in a new issue