mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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)
|
if (!cmd)
|
||||||
return 0;
|
return 0;
|
||||||
for (c = &cmd_functions; *c; c = &(*c)->next)
|
for (c = &cmd_functions; *c; c = &(*c)->next)
|
||||||
if ((*c)->next == cmd)
|
if (*c == cmd)
|
||||||
break;
|
break;
|
||||||
(*c)->next = cmd->next;
|
*c = cmd->next;
|
||||||
free (cmd);
|
free (cmd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue