summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_bf.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2016-08-19 23:54:55 +0200
committerYehonal <yehonal.azeroth@gmail.com>2016-08-19 23:54:55 +0200
commitee0ead5e4fbc83e33d8964e6ea4cac180654510f (patch)
tree9bb93e3e1b8a76ab76b43a84b2d965395ac340d8 /src/scripts/Commands/cs_bf.cpp
parent8ee36c5f642a9c4ac1d6dd45ec918a73e59d83f9 (diff)
parentcb30a6b4043737957aa1d1bca27601c6577a80ec (diff)
Merge branch 'threading_rewrite' of https://github.com/ShinDarth/azerothcore-wotlk into threading_rewrite
Diffstat (limited to 'src/scripts/Commands/cs_bf.cpp')
-rw-r--r--src/scripts/Commands/cs_bf.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/scripts/Commands/cs_bf.cpp b/src/scripts/Commands/cs_bf.cpp
index 8d48906f3f..4e88686b19 100644
--- a/src/scripts/Commands/cs_bf.cpp
+++ b/src/scripts/Commands/cs_bf.cpp
@@ -20,21 +20,21 @@ class bf_commandscript : public CommandScript
public:
bf_commandscript() : CommandScript("bf_commandscript") { }
- ChatCommand* GetCommands() const
+ std::vector<ChatCommand> GetCommands() const override
{
- static ChatCommand battlefieldcommandTable[] =
+ static std::vector<ChatCommand> battlefieldcommandTable =
{
- { "start", SEC_ADMINISTRATOR, false, &HandleBattlefieldStart, "", NULL },
- { "stop", SEC_ADMINISTRATOR, false, &HandleBattlefieldEnd, "", NULL },
- { "switch", SEC_ADMINISTRATOR, false, &HandleBattlefieldSwitch, "", NULL },
- { "timer", SEC_ADMINISTRATOR, false, &HandleBattlefieldTimer, "", NULL },
- { "enable", SEC_ADMINISTRATOR, false, &HandleBattlefieldEnable, "", NULL },
- { NULL, 0, false, NULL, "", NULL }
+ { "start", SEC_ADMINISTRATOR, false, &HandleBattlefieldStart, "" },
+ { "stop", SEC_ADMINISTRATOR, false, &HandleBattlefieldEnd, "" },
+ { "switch", SEC_ADMINISTRATOR, false, &HandleBattlefieldSwitch, "" },
+ { "timer", SEC_ADMINISTRATOR, false, &HandleBattlefieldTimer, "" },
+ { "enable", SEC_ADMINISTRATOR, false, &HandleBattlefieldEnable, "" },
+ { NULL, 0, false, NULL, "" }
};
- static ChatCommand commandTable[] =
+ static std::vector<ChatCommand> commandTable =
{
{ "bf", SEC_ADMINISTRATOR, false, NULL, "", battlefieldcommandTable },
- { NULL, 0, false, NULL, "", NULL }
+ { NULL, 0, false, NULL, "" }
};
return commandTable;
}