1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

(svn r15373) -Fix [FS#2606]: Kenobi denied the server's client name to the tab-completed.

This commit is contained in:
rubidium
2009-02-06 15:11:17 +00:00
parent c346f249cd
commit ef754b8b6d

View File

@@ -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;