summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-28 06:46:15 +0000
committertron <tron@openttd.org>2006-06-28 06:46:15 +0000
commitc617d701115bf587da936fe39289f3fda984e143 (patch)
treee82e05ad46682a059e6d202d2a664aa1941a396c
parent6302469aa84c12de98c8f3f1d2de2963067c47ee (diff)
downloadopenttd-c617d701115bf587da936fe39289f3fda984e143.tar.xz
(svn r5400) Typo in 5391, spotted by peter1138
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index e01b9c6b5..c3725d312 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -548,7 +548,7 @@ DEF_CONSOLE_CMD(ConStatus)
const NetworkClientInfo *ci = DEREF_CLIENT_INFO(cs);
const char* status;
- status = (cs->status <= lengthof(stat_str) ? stat_str[cs->status] : "unknown");
+ status = (cs->status < lengthof(stat_str) ? stat_str[cs->status] : "unknown");
IConsolePrintF(8, "Client #%1d name: '%s' status: '%s' frame-lag: %3d company: %1d IP: %s unique-id: '%s'",
cs->index, ci->client_name, status, lag, ci->client_playas, GetPlayerIP(ci), ci->unique_id);
}