Fix commands and starting to use nullptr instead of NULL

This commit is contained in:
Yehonal
2016-08-20 09:49:37 +02:00
parent d7fdf7c940
commit 1b1767e9f4
32 changed files with 394 additions and 479 deletions

View File

@@ -34,13 +34,11 @@ public:
{ "spells", SEC_ADMINISTRATOR, true, &HandleResetSpellsCommand, "" },
{ "stats", SEC_ADMINISTRATOR, true, &HandleResetStatsCommand, "" },
{ "talents", SEC_ADMINISTRATOR, true, &HandleResetTalentsCommand, "" },
{ "all", SEC_ADMINISTRATOR, true, &HandleResetAllCommand, "" },
{ NULL, 0, false, NULL, "" }
{ "all", SEC_ADMINISTRATOR, true, &HandleResetAllCommand, "" }
};
static std::vector<ChatCommand> commandTable =
{
{ "reset", SEC_ADMINISTRATOR, true, NULL, "", resetCommandTable },
{ NULL, 0, false, NULL, "" }
{ "reset", SEC_ADMINISTRATOR, true, nullptr, "", resetCommandTable }
};
return commandTable;
}