summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-06 15:11:17 +0000
committerrubidium <rubidium@openttd.org>2009-02-06 15:11:17 +0000
commitcd0edc920181884cef4508db68571393f93f3de8 (patch)
tree202ef829d860711d9e939cdc68d9ab2b26d9ee28
parenta3da2d514566b701c04bbad6346d6c5d0560b06e (diff)
downloadopenttd-cd0edc920181884cef4508db68571393f93f3de8.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.cpp4
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;