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

@@ -30,12 +30,12 @@ public:
{ "complete", SEC_ADMINISTRATOR, false, &HandleQuestComplete, "" },
{ "remove", SEC_ADMINISTRATOR, false, &HandleQuestRemove, "" },
{ "reward", SEC_ADMINISTRATOR, false, &HandleQuestReward, "" },
{ NULL, SEC_PLAYER, false, NULL, "" }
{ nullptr, SEC_PLAYER, false, nullptr, "" }
};
static std::vector<ChatCommand> commandTable =
{
{ "quest", SEC_ADMINISTRATOR, false, NULL, "", questCommandTable },
{ NULL, SEC_PLAYER, false, NULL, "" }
{ "quest", SEC_ADMINISTRATOR, false, nullptr, "", questCommandTable },
{ nullptr, SEC_PLAYER, false, nullptr, "" }
};
return commandTable;
}
@@ -80,7 +80,7 @@ public:
// ok, normal (creature/GO starting) quest
if (player->CanAddQuest(quest, true))
player->AddQuestAndCheckCompletion(quest, NULL);
player->AddQuestAndCheckCompletion(quest, nullptr);
return true;
}