Fix narrowing warning using packet GetDeserialisationPosition

This commit is contained in:
Jonathan G Rennison
2024-05-31 23:19:55 +01:00
parent 7997430688
commit 0351734729

View File

@@ -1725,7 +1725,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::Receive_CLIENT_RCON(Packet &p)
bool done = false; bool done = false;
if (_rcon_authorized_key_handler.IsAllowed(this->peer_public_key)) { if (_rcon_authorized_key_handler.IsAllowed(this->peer_public_key)) {
/* We are allowed, try to handle using '*' password */ /* We are allowed, try to handle using '*' password */
size_t saved_pos = p.GetDeserialisationPosition(); PacketSize saved_pos = p.GetDeserialisationPosition();
if (this->ParseKeyPasswordPacket(p, ss, "*", &command, NETWORK_RCONCOMMAND_LENGTH)) { if (this->ParseKeyPasswordPacket(p, ss, "*", &command, NETWORK_RCONCOMMAND_LENGTH)) {
done = true; done = true;
} else { } else {