diff options
author | rubidium42 <rubidium@openttd.org> | 2021-06-13 23:41:15 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-15 06:13:00 +0200 |
commit | a8b3afb236ba564a0c9d47adacc70ba701525c78 (patch) | |
tree | d5ce82e860e19020d2d47d5ec82b0a7f5a1f914f /src/network/network_server.cpp | |
parent | 49dcf0c772606bfd76ffa083a11d77c8e273f919 (diff) | |
download | openttd-a8b3afb236ba564a0c9d47adacc70ba701525c78.tar.xz |
Codechange: [Network] Use string_view for network compatability check
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r-- | src/network/network_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 9868c905e..d67343359 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -878,7 +878,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::Receive_CLIENT_JOIN(Packet *p) uint32 newgrf_version = p->Recv_uint32(); /* Check if the client has revision control enabled */ - if (!IsNetworkCompatibleVersion(client_revision.c_str()) || _openttd_newgrf_version != newgrf_version) { + if (!IsNetworkCompatibleVersion(client_revision) || _openttd_newgrf_version != newgrf_version) { /* Different revisions!! */ return this->SendError(NETWORK_ERROR_WRONG_REVISION); } |