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

This commit is contained in:
Vincent Herbert 2013-06-15 20:59:11 +02:00
parent 1c7d8ab157
commit 676952c02f

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