diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-20 09:49:37 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-20 09:49:37 +0200 |
commit | 1b1767e9f4c20d1e20541968de98d00814f63247 (patch) | |
tree | ee95040cf29644aff151f9aebdf3bfd9e18ae08d /src/scripts/Commands/cs_tele.cpp | |
parent | d7fdf7c940317aebcbbeeaf156469e1571e01498 (diff) |
Fix commands and starting to use nullptr instead of NULL
Diffstat (limited to 'src/scripts/Commands/cs_tele.cpp')
-rw-r--r-- | src/scripts/Commands/cs_tele.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/scripts/Commands/cs_tele.cpp b/src/scripts/Commands/cs_tele.cpp index 05bb351c06..0dd3d9ab3a 100644 --- a/src/scripts/Commands/cs_tele.cpp +++ b/src/scripts/Commands/cs_tele.cpp @@ -32,13 +32,11 @@ public: { "del", SEC_ADMINISTRATOR, true, &HandleTeleDelCommand, "" }, { "name", SEC_GAMEMASTER, true, &HandleTeleNameCommand, "" }, { "group", SEC_GAMEMASTER, false, &HandleTeleGroupCommand, "" }, - { "", SEC_GAMEMASTER, false, &HandleTeleCommand, "" }, - { NULL, 0, false, NULL, "" } + { "", SEC_GAMEMASTER, false, &HandleTeleCommand, "" } }; static std::vector<ChatCommand> commandTable = { - { "tele", SEC_GAMEMASTER, false, NULL, "", teleCommandTable }, - { NULL, 0, false, NULL, "" } + { "tele", SEC_GAMEMASTER, false, nullptr, "", teleCommandTable } }; return commandTable; } @@ -187,7 +185,7 @@ public: else { // check offline security - if (handler->HasLowerSecurity(NULL, target_guid)) + if (handler->HasLowerSecurity(nullptr, target_guid)) return false; std::string nameLink = handler->playerLink(target_name); @@ -245,7 +243,7 @@ public: return false; } - for (GroupReference* itr = grp->GetFirstMember(); itr != NULL; itr = itr->next()) + for (GroupReference* itr = grp->GetFirstMember(); itr != nullptr; itr = itr->next()) { Player* player = itr->GetSource(); |