Skip to content

Commit

Permalink
Fix crash when running disconnect %%s (#554)
Browse files Browse the repository at this point in the history
Co-authored-by: Kawe Mazidjatari <[email protected]>
  • Loading branch information
ASpoonPlaysGames and Mauler125 authored Oct 2, 2023
1 parent cde626b commit d6f0cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NorthstarDLL/client/rejectconnectionfixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d6f0cd5

Please sign in to comment.