Fix asm I forgot about

This commit is contained in:
FutureRave 2022-03-10 15:11:26 +00:00
parent 51df102d51
commit 800795b3a4
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -374,15 +374,16 @@ namespace game
return SL_GetStringOfSize(str, user, strlen(str) + 1, 7); return SL_GetStringOfSize(str, user, strlen(str) + 1, 7);
} }
constexpr auto sv_send_client_game_state_mp_addr = 0x570FC0;
__declspec(naked) void sv_send_client_game_state_mp(mp::client_t* /*client*/) __declspec(naked) void sv_send_client_game_state_mp(mp::client_t* /*client*/)
{ {
static DWORD func = 0x570FC0;
__asm __asm
{ {
pushad pushad
mov esi, [esp + 0x20 + 0x4] mov esi, [esp + 0x20 + 0x4]
call sv_send_client_game_state_mp_addr call func
popad popad
ret ret