Core/Commands: Added assertion checking if command name is not null
(cherry picked from commit 56959697257aba3537af2273d9d30114bfd6bd5c)
This commit is contained in:
1 parent
a17c27aaeb
commit
d6c52ba28c
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user