diff --git a/Source/Contents/Configuration/ServiceOptions.cpp b/Source/Contents/Configuration/ServiceOptions.cpp index 4418d0f43..dff0ea7c8 100644 --- a/Source/Contents/Configuration/ServiceOptions.cpp +++ b/Source/Contents/Configuration/ServiceOptions.cpp @@ -877,8 +877,7 @@ void SendConfigServiceOption(int id, unsigned char value, bool notify, int enabl packet.id = 0x2D8; packet.type = 1; packet.value = value; - CRagConnection& connection = GetRagConnection(); - connection.Send(g_packetLengths.FixedLength(packet.id), &packet); + GetRagConnection().Send(reinterpret_cast(GetRagConnection()).FixedLength(packet.id), &packet); } }