From 779ea2d5b4a0f3c6612e8644cf9a97a051abc952 Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:03:37 +0100 Subject: [PATCH] Fix crash when running `disconnect %%s` --- 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 5daeb3eeb..6adde8b6c 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))