mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
mindHog's fix for RemoveCommand being totally borked (oops:)
This commit is contained in:
parent
e16a211e1f
commit
3418e904a4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue