aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/client/rejectconnectionfixes.cpp
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-10-02 22:44:27 +0100
committerGitHub <noreply@github.com>2023-10-02 23:44:27 +0200
commitd6f0cd508dfb81a9af7afa5ac70b8b2496665037 (patch)
tree6056b30b6fc08e3d5135d2b482935bdea24c9269 /NorthstarDLL/client/rejectconnectionfixes.cpp
parentcde626b041e72d749c54d0be8119fe3604bbf4f0 (diff)
downloadNorthstarLauncher-d6f0cd508dfb81a9af7afa5ac70b8b2496665037.tar.gz
NorthstarLauncher-d6f0cd508dfb81a9af7afa5ac70b8b2496665037.zip
Fix crash when running `disconnect %%s` (#554)v1.19.2-rc1v1.19.2
Co-authored-by: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>
Diffstat (limited to 'NorthstarDLL/client/rejectconnectionfixes.cpp')
-rw-r--r--NorthstarDLL/client/rejectconnectionfixes.cpp2
1 files changed, 1 insertions, 1 deletions
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))