summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_quest.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2016-08-20 09:49:37 +0200
committerYehonal <yehonal.azeroth@gmail.com>2016-08-20 09:49:37 +0200
commit1b1767e9f4c20d1e20541968de98d00814f63247 (patch)
treeee95040cf29644aff151f9aebdf3bfd9e18ae08d /src/scripts/Commands/cs_quest.cpp
parentd7fdf7c940317aebcbbeeaf156469e1571e01498 (diff)
Fix commands and starting to use nullptr instead of NULL
Diffstat (limited to 'src/scripts/Commands/cs_quest.cpp')
-rw-r--r--src/scripts/Commands/cs_quest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts/Commands/cs_quest.cpp b/src/scripts/Commands/cs_quest.cpp
index 84822a2b57..c8e7d51d63 100644
--- a/src/scripts/Commands/cs_quest.cpp
+++ b/src/scripts/Commands/cs_quest.cpp
@@ -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;
}