small fix to prevent compiler warning
authorHolger Schemel <info@artsoft.org>
Tue, 14 Jun 2016 11:15:24 +0000 (13:15 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 14 Jun 2016 11:15:24 +0000 (13:15 +0200)
src/network.c

index 2946240128ce35ae379715dbd54f67f863b333e4..56d6bc66226452bbdff72c886630fe425263f44b 100644 (file)
@@ -98,7 +98,7 @@ char *getNetworkPlayerName(int player_nr)
     return("you");
   else
     for (player = &first_player; player; player = player->next)
-      if (player->nr == player_nr && player->name && strlen(player->name))
+      if (player->nr == player_nr && strlen(player->name) > 0)
        return(player->name);
 
   return(EMPTY_PLAYER_NAME);