Fix for VS2012 command.cpp:501 error

This commit is contained in:
Uleat 2015-12-08 21:15:41 -05:00
parent 6f1ad1fbc1
commit 2159d18920

View File

@ -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++;