diff --git a/src/Components/Modules/Party.cpp b/src/Components/Modules/Party.cpp index a43d1d2e..34128c5d 100644 --- a/src/Components/Modules/Party.cpp +++ b/src/Components/Modules/Party.cpp @@ -352,7 +352,7 @@ namespace Components info.set("shortversion", SHORTVERSION); info.set("checksum", std::to_string(Game::Sys_Milliseconds())); info.set("mapname", Dvar::Var("mapname").get()); - info.set("isPrivate", password.empty() ? "1" : "0"); + info.set("isPrivate", password.empty() ? "0" : "1"); info.set("hc", (Dvar::Var("g_hardcore").get() ? "1" : "0")); info.set("securityLevel", std::to_string(securityLevel)); info.set("sv_running", (Dedicated::IsRunning() ? "1" : "0")); diff --git a/src/Components/Modules/Voice.cpp b/src/Components/Modules/Voice.cpp index edc84cca..5308ebba 100644 --- a/src/Components/Modules/Voice.cpp +++ b/src/Components/Modules/Voice.cpp @@ -40,8 +40,8 @@ namespace Components Game::msg_t msg{}; const auto clientNum = client - Game::svs_clients; - const Game::Engine::LargeLocal msg_buf_large_local(0x10000); - auto* msg_buf = static_cast(msg_buf_large_local.GetBuf()); + const auto msg_buf_large = std::make_unique(0x10000); + auto* msg_buf = msg_buf_large.get(); assert(VoicePacketCount[clientNum] >= 0);