]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
got rid of Hunk_Alloc, all allocations now have a proper name (perhaps a bit too...
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index bf4579b85401c29cc3188b805d43729e2e71ae51..6bb726f458f9e8b711435dd717c18fa23906dcd6 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -553,7 +553,7 @@ void        Cmd_AddCommand (char *cmd_name, xcommand_t function)
                }
        }
 
-       cmd = Hunk_Alloc (sizeof(cmd_function_t));
+       cmd = Hunk_AllocName (sizeof(cmd_function_t), "commands");
        cmd->name = cmd_name;
        cmd->function = function;
        cmd->next = cmd_functions;