From 1b1767e9f4c20d1e20541968de98d00814f63247 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Sat, 20 Aug 2016 09:49:37 +0200 Subject: Fix commands and starting to use nullptr instead of NULL --- src/scripts/Commands/cs_bf.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/scripts/Commands/cs_bf.cpp') diff --git a/src/scripts/Commands/cs_bf.cpp b/src/scripts/Commands/cs_bf.cpp index 4e88686b19..6544edff3e 100644 --- a/src/scripts/Commands/cs_bf.cpp +++ b/src/scripts/Commands/cs_bf.cpp @@ -28,13 +28,11 @@ public: { "stop", SEC_ADMINISTRATOR, false, &HandleBattlefieldEnd, "" }, { "switch", SEC_ADMINISTRATOR, false, &HandleBattlefieldSwitch, "" }, { "timer", SEC_ADMINISTRATOR, false, &HandleBattlefieldTimer, "" }, - { "enable", SEC_ADMINISTRATOR, false, &HandleBattlefieldEnable, "" }, - { NULL, 0, false, NULL, "" } + { "enable", SEC_ADMINISTRATOR, false, &HandleBattlefieldEnable, "" } }; static std::vector commandTable = { - { "bf", SEC_ADMINISTRATOR, false, NULL, "", battlefieldcommandTable }, - { NULL, 0, false, NULL, "" } + { "bf", SEC_ADMINISTRATOR, false, nullptr, "", battlefieldcommandTable } }; return commandTable; } @@ -141,7 +139,7 @@ public: char* battleid_str = strtok((char*)args, " "); if (!battleid_str) return false; - char* time_str = strtok(NULL, " "); + char* time_str = strtok(nullptr, " "); if (!time_str) return false; -- cgit v1.2.3