mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
fix(dvar_cheats): crash when accessing nullptr
This commit is contained in:
parent
0a083c8f0b
commit
98f7d31378
@ -170,7 +170,6 @@ namespace dvar_cheats
|
|||||||
utils::hook::jump(0x1404C3A9A, dvar_flag_checks_stub, true); // check extra dvar flags when setting values
|
utils::hook::jump(0x1404C3A9A, dvar_flag_checks_stub, true); // check extra dvar flags when setting values
|
||||||
|
|
||||||
utils::hook::nop(0x1402E2E03, 5); // remove error in PlayerCmd_SetClientDvar if setting a non-network dvar
|
utils::hook::nop(0x1402E2E03, 5); // remove error in PlayerCmd_SetClientDvar if setting a non-network dvar
|
||||||
utils::hook::set<uint8_t>(0x1402E2DCF, 0xEB);
|
|
||||||
// don't check flags on the dvars, send any existing dvar instead
|
// don't check flags on the dvars, send any existing dvar instead
|
||||||
utils::hook::jump(0x1402E2E4A, player_cmd_set_client_dvar, true); // send non-network dvars as string
|
utils::hook::jump(0x1402E2E4A, player_cmd_set_client_dvar, true); // send non-network dvars as string
|
||||||
utils::hook::call(0x1401BB782, cg_set_client_dvar_from_server);
|
utils::hook::call(0x1401BB782, cg_set_client_dvar_from_server);
|
||||||
|
Loading…
Reference in New Issue
Block a user