mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-23 06:29:11 +00:00
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
This commit is contained in:
@@ -1793,7 +1793,7 @@ void NetworkServerBanIP(const char *banip)
|
||||
|
||||
/* There can be multiple clients with the same IP, kick them all */
|
||||
FOR_ALL_CLIENT_INFOS(ci) {
|
||||
if (ci->client_address.IsInNetmask((char*)banip)) {
|
||||
if (ci->client_address.IsInNetmask(const_cast<char *>(banip))) {
|
||||
NetworkServerKickClient(ci->client_id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user