mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fix crash using [get|set]_usercmd (bug 5744, r=me)
This commit is contained in:
parent
1c7d8ab157
commit
676952c02f
@ -123,7 +123,7 @@ void CmdStart(const edict_t *player, const struct usercmd_s *_cmd, unsigned int
|
|||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
int retVal = 0;
|
int retVal = 0;
|
||||||
edict_t *pEntity = (edict_t *)player;
|
edict_t *pEntity = (edict_t *)player;
|
||||||
struct usercmd_s *g_cmd = (struct usercmd_s *)_cmd;
|
g_cmd = (struct usercmd_s *)_cmd;
|
||||||
META_RES res = MRES_IGNORED;
|
META_RES res = MRES_IGNORED;
|
||||||
int origImpulse = g_cmd->impulse; // incase a plugin alters it
|
int origImpulse = g_cmd->impulse; // incase a plugin alters it
|
||||||
for (i=0; i<Impulses.size(); i++)
|
for (i=0; i<Impulses.size(); i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user