Core/Commands: Added assertion checking if command name is not null

(cherry picked from commit 5695969725)
This commit is contained in:
Shauren
2015-11-03 20:02:47 +01:00
parent a17c27aaeb
commit d6c52ba28c

View File

@@ -42,7 +42,7 @@ class ChatCommand
public:
ChatCommand(char const* name, uint32 permission, bool allowConsole, pHandler handler, std::string help, std::vector<ChatCommand> childCommands = std::vector<ChatCommand>())
: Name(name), Permission(permission), AllowConsole(allowConsole), Handler(handler), Help(std::move(help)), ChildCommands(std::move(childCommands)) { }
: Name(ASSERT_NOTNULL(name)), Permission(permission), AllowConsole(allowConsole), Handler(handler), Help(std::move(help)), ChildCommands(std::move(childCommands)) { }
char const* Name;
uint32 Permission; // function pointer required correct align (use uint32)