summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_bf.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_bf.cpp
parentd7fdf7c940317aebcbbeeaf156469e1571e01498 (diff)
Fix commands and starting to use nullptr instead of NULL
Diffstat (limited to 'src/scripts/Commands/cs_bf.cpp')
-rw-r--r--src/scripts/Commands/cs_bf.cpp8
1 files changed, 3 insertions, 5 deletions
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<ChatCommand> 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;