fix an incorrect parameter bug found by Grievre

This commit is contained in:
Bill Currie 2003-12-06 05:06:27 +00:00
parent 4d3ca27227
commit 53e382d3f8

View file

@ -1379,7 +1379,7 @@ SV_ExecuteUserCommand (const char *s)
} else { } else {
if (!u->no_redirect) if (!u->no_redirect)
SV_BeginRedirect (RD_CLIENT); SV_BeginRedirect (RD_CLIENT);
u->func (u); u->func (u->userdata);
if (!u->no_redirect) if (!u->no_redirect)
SV_EndRedirect (); SV_EndRedirect ();
} }