projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d5dd6
)
small fix to prevent compiler warning
author
Holger Schemel
<info@artsoft.org>
Tue, 14 Jun 2016 11:15:24 +0000
(13:15 +0200)
committer
Holger Schemel
<info@artsoft.org>
Tue, 14 Jun 2016 11:15:24 +0000
(13:15 +0200)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index 2946240128ce35ae379715dbd54f67f863b333e4..56d6bc66226452bbdff72c886630fe425263f44b 100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-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);