diff options
author | rubidium <rubidium@openttd.org> | 2009-02-06 15:11:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-06 15:11:17 +0000 |
commit | ef754b8b6d41420ffabee4e191865f995a49c948 (patch) | |
tree | 202ef829d860711d9e939cdc68d9ab2b26d9ee28 | |
parent | c346f249cd30329dde69a84e3de5915a91921eca (diff) | |
download | openttd-ef754b8b6d41420ffabee4e191865f995a49c948.tar.xz |
(svn r15373) -Fix [FS#2606]: Kenobi denied the server's client name to the tab-completed.
-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; |