mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
fixed a serious bug in the ClientCommand detour for cstrike, crashing on cl_autobuy
This commit is contained in:
parent
e6663991a7
commit
e2c1bad224
@ -46,7 +46,7 @@ void CtrlDetour_ClientCommand(bool set)
|
|||||||
{
|
{
|
||||||
'\x50', /* push eax ; just for safety */
|
'\x50', /* push eax ; just for safety */
|
||||||
'\x68', '\x00', '\x00', '\x00', '\x00', /* push 0 ; space to store override rule */
|
'\x68', '\x00', '\x00', '\x00', '\x00', /* push 0 ; space to store override rule */
|
||||||
'\xff', '\x74', '\x24', '\x04', /* push [esp+4] ; push the edict pointer */
|
'\xff', '\x74', '\x24', '\x0C', /* push [esp+4] ; push the edict pointer */
|
||||||
'\xe8', '\x00', '\x00', '\x00', '\x00', /* call <gate> ; call our function */
|
'\xe8', '\x00', '\x00', '\x00', '\x00', /* call <gate> ; call our function */
|
||||||
'\x58', /* pop eax ; remove 3rd push */
|
'\x58', /* pop eax ; remove 3rd push */
|
||||||
'\x58', /* pop eax ; remove 2nd push */
|
'\x58', /* pop eax ; remove 2nd push */
|
||||||
|
Loading…
Reference in New Issue
Block a user