diff options
-rw-r--r-- | src/network/network_chat_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index e53a8dbf3..8b538d62b 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -303,10 +303,10 @@ public: /* First, try clients */ if (*item < MAX_CLIENT_SLOTS) { - if (*item + 1 < GetNetworkClientInfoPoolSize()) { + if (*item < GetNetworkClientInfoPoolSize()) { /* Skip inactive clients */ NetworkClientInfo *ci; - FOR_ALL_CLIENT_INFOS_FROM(ci, *item + 1) break; + FOR_ALL_CLIENT_INFOS_FROM(ci, *item) break; if (ci != NULL) { *item = ci->index; return ci->client_name; |