diff --git a/apps/browser/netutils/QueryClient.cpp b/apps/browser/netutils/QueryClient.cpp index 37536880f..e96a9be1a 100644 --- a/apps/browser/netutils/QueryClient.cpp +++ b/apps/browser/netutils/QueryClient.cpp @@ -179,7 +179,7 @@ ConnectionState QueryClient::Connect() { ConnectionAttemptResult car = peer->Connect(masterAddr.ToString(false), masterAddr.GetPort(), TES3MP_MASTERSERVER_PASSW, - strlen(TES3MP_MASTERSERVER_PASSW), 0, 0, 5, 500); + strlen(TES3MP_MASTERSERVER_PASSW), nullptr, 0, 5, 500); while (true) { diff --git a/apps/browser/netutils/Utils.cpp b/apps/browser/netutils/Utils.cpp index 920bad832..702269691 100644 --- a/apps/browser/netutils/Utils.cpp +++ b/apps/browser/netutils/Utils.cpp @@ -44,11 +44,15 @@ unsigned int PingRakNetServer(const char *addr, unsigned short port) break; case ID_CONNECTED_PING: case ID_UNCONNECTED_PONG: + { RakNet::BitStream bsIn(&packet->data[1], packet->length, false); bsIn.Read(time); time = now - time; done = true; break; + } + default: + break; } peer->DeallocatePacket(packet); }