mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
Fix for VS2012 command.cpp:501 error
This commit is contained in:
parent
6f1ad1fbc1
commit
2159d18920
@ -498,7 +498,11 @@ int command_add(std::string command_name, const char *desc, int access, CmdFuncP
|
|||||||
return -1;
|
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;
|
commandlist[command_name] = c;
|
||||||
cleanup_commandlist.Append(c);
|
cleanup_commandlist.Append(c);
|
||||||
commandcount++;
|
commandcount++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user