From d6f0cd508dfb81a9af7afa5ac70b8b2496665037 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 2 Oct 2023 22:44:27 +0100 Subject: Fix crash when running `disconnect %%s` (#554) Co-authored-by: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> --- NorthstarDLL/client/rejectconnectionfixes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NorthstarDLL/client/rejectconnectionfixes.cpp b/NorthstarDLL/client/rejectconnectionfixes.cpp index 5daeb3ee..6adde8b6 100644 --- a/NorthstarDLL/client/rejectconnectionfixes.cpp +++ b/NorthstarDLL/client/rejectconnectionfixes.cpp @@ -25,7 +25,7 @@ void,, (bool a1, const char* fmt, ...)) R2::Cbuf_AddText(R2::Cbuf_GetCurrentPlayer(), "disconnect", R2::cmd_source_t::kCommandSrcCode); } - return COM_ExplainDisconnection(a1, buf); + return COM_ExplainDisconnection(a1, "%s", buf); } ON_DLL_LOAD_CLIENT("engine.dll", RejectConnectionFixes, (CModule module)) -- cgit v1.2.3