Fix crash using [get|set]_usercmd (bug 5744, r=me)

Former-commit-id: 676952c02f7df7d3595a6f36bc3efbead3a40eee
This commit is contained in:
Vincent Herbert 2013-06-15 20:59:11 +02:00
parent 950ef59319
commit f608ae76ed

View File

@ -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++)