From f608ae76ed28a965983de63beff271479ae2b001 Mon Sep 17 00:00:00 2001 From: Vincent Herbert Date: Sat, 15 Jun 2013 20:59:11 +0200 Subject: [PATCH] Fix crash using [get|set]_usercmd (bug 5744, r=me) Former-commit-id: 676952c02f7df7d3595a6f36bc3efbead3a40eee --- dlls/engine/forwards.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/engine/forwards.cpp b/dlls/engine/forwards.cpp index a45ddbaa..a74328fa 100755 --- a/dlls/engine/forwards.cpp +++ b/dlls/engine/forwards.cpp @@ -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