From 5f14a7396883ec63c4f9e00629b1231882ded064 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Sat, 26 Nov 2022 19:18:41 +0000 Subject: [PATCH] [Party]: Fix bug --- src/Components/Modules/Party.cpp | 2 +- src/Components/Modules/Voice.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);