mirror of https://github.com/OpenTTD/OpenTTD
(svn r15373) -Fix [FS#2606]: Kenobi denied the server's client name to the tab-completed.
parent
c346f249cd
commit
ef754b8b6d
|
@ -303,10 +303,10 @@ public:
|
||||||
|
|
||||||
/* First, try clients */
|
/* First, try clients */
|
||||||
if (*item < MAX_CLIENT_SLOTS) {
|
if (*item < MAX_CLIENT_SLOTS) {
|
||||||
if (*item + 1 < GetNetworkClientInfoPoolSize()) {
|
if (*item < GetNetworkClientInfoPoolSize()) {
|
||||||
/* Skip inactive clients */
|
/* Skip inactive clients */
|
||||||
NetworkClientInfo *ci;
|
NetworkClientInfo *ci;
|
||||||
FOR_ALL_CLIENT_INFOS_FROM(ci, *item + 1) break;
|
FOR_ALL_CLIENT_INFOS_FROM(ci, *item) break;
|
||||||
if (ci != NULL) {
|
if (ci != NULL) {
|
||||||
*item = ci->index;
|
*item = ci->index;
|
||||||
return ci->client_name;
|
return ci->client_name;
|
||||||
|
|
Loading…
Reference in New Issue