diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-25 21:01:56 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | aa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (patch) | |
tree | 2b80f868a6e3e9df699f3b96bffb41b7b6f84125 /src/console_cmds.cpp | |
parent | bc7dcaffca553b227fe895dc185e657d110c5ffe (diff) | |
download | openttd-aa7ca7fe64af51c2cd2400e3dec477dfbddadae3.tar.xz |
Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index a4a6fccd1..85b2ddbb1 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -566,7 +566,7 @@ DEF_CONSOLE_CMD(ConUnBan) seprintf(msg, lastof(msg), "Unbanned %s", _network_ban_list[index]); IConsolePrint(CC_DEFAULT, msg); free(_network_ban_list[index]); - _network_ban_list.Erase(_network_ban_list.Get(index)); + _network_ban_list.erase(_network_ban_list.begin() + index); } else { IConsolePrint(CC_DEFAULT, "Invalid list index or IP not in ban-list."); IConsolePrint(CC_DEFAULT, "For a list of banned IP's, see the command 'banlist'"); |