mindHog's fix for RemoveCommand being totally borked (oops:)

This commit is contained in:
Bill Currie 2003-04-25 03:06:34 +00:00
parent e16a211e1f
commit 3418e904a4

View file

@ -175,9 +175,9 @@ Cmd_RemoveCommand (const char *name)
if (!cmd)
return 0;
for (c = &cmd_functions; *c; c = &(*c)->next)
if ((*c)->next == cmd)
if (*c == cmd)
break;
(*c)->next = cmd->next;
*c = cmd->next;
free (cmd);
return 1;
}