diff --git a/zone/command.cpp b/zone/command.cpp index f2f9ed5a9..8cea3ae32 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -498,7 +498,11 @@ int command_add(std::string command_name, const char *desc, int access, CmdFuncP return -1; } - CommandRecord *c = new CommandRecord{ access, desc, function }; + CommandRecord *c = new CommandRecord; + c->access = access; + c->desc = desc; + c->function = function; + commandlist[command_name] = c; cleanup_commandlist.Append(c); commandcount++;