Fix crash using [get|set]_usercmd (bug 5744, r=me)
Former-commit-id: 676952c02f7df7d3595a6f36bc3efbead3a40eee
This commit is contained in:
parent
950ef59319
commit
f608ae76ed
|
@ -123,7 +123,7 @@ void CmdStart(const edict_t *player, const struct usercmd_s *_cmd, unsigned int
|
|||
unsigned int i = 0;
|
||||
int retVal = 0;
|
||||
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;
|
||||
int origImpulse = g_cmd->impulse; // incase a plugin alters it
|
||||
for (i=0; i<Impulses.size(); i++)
|
||||
|
|
Loading…
Reference in New Issue
Block a user