mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Fix for VS2012 command.cpp:501 error
This commit is contained in:
+5
-1
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user