summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Horta <geral@miguelhorta.name>2020-06-08 21:22:49 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-06-08 21:56:57 +0100
commit40436019fd05abf5c92daf8a6d0388d32a36c5a3 (patch)
tree42e3b7e48ba612cdde2de3fecc069ef868e21740 /src
parent0b86bd8b03a333b2c0a1900901c3535a188e475d (diff)
downloadopenttd-40436019fd05abf5c92daf8a6d0388d32a36c5a3.tar.xz
Fix: Display banlist's indexes correctly
Bug introduced via commit ab711e6942
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 4706bfd91..857dc61ad 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -606,6 +606,7 @@ DEF_CONSOLE_CMD(ConBanList)
uint i = 1;
for (const auto &entry : _network_ban_list) {
IConsolePrintF(CC_DEFAULT, " %d) %s", i, entry.c_str());
+ i++;
}
return true;