diff --git a/src/client/component/rcon.cpp b/src/client/component/rcon.cpp index 82af9ecc..4fd67a4e 100644 --- a/src/client/component/rcon.cpp +++ b/src/client/component/rcon.cpp @@ -17,7 +17,7 @@ namespace rcon { std::optional get_and_validate_rcon_command(const std::string& data) { - const command::params params{reinterpret_cast(data.data())}; + const command::params params{data.data()}; if (params.size() <= 1) {