diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-19 23:54:55 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-19 23:54:55 +0200 |
commit | ee0ead5e4fbc83e33d8964e6ea4cac180654510f (patch) | |
tree | 9bb93e3e1b8a76ab76b43a84b2d965395ac340d8 /src/scripts/Commands/cs_cast.cpp | |
parent | 8ee36c5f642a9c4ac1d6dd45ec918a73e59d83f9 (diff) | |
parent | cb30a6b4043737957aa1d1bca27601c6577a80ec (diff) |
Merge branch 'threading_rewrite' of https://github.com/ShinDarth/azerothcore-wotlk into threading_rewrite
Diffstat (limited to 'src/scripts/Commands/cs_cast.cpp')
-rw-r--r-- | src/scripts/Commands/cs_cast.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/scripts/Commands/cs_cast.cpp b/src/scripts/Commands/cs_cast.cpp index 4b333f030a..743a9f75aa 100644 --- a/src/scripts/Commands/cs_cast.cpp +++ b/src/scripts/Commands/cs_cast.cpp @@ -23,22 +23,22 @@ class cast_commandscript : public CommandScript public: cast_commandscript() : CommandScript("cast_commandscript") { } - ChatCommand* GetCommands() const + std::vector<ChatCommand> GetCommands() const override { - static ChatCommand castCommandTable[] = + static std::vector<ChatCommand> castCommandTable = { - { "back", SEC_ADMINISTRATOR, false, &HandleCastBackCommand, "", NULL }, - { "dist", SEC_ADMINISTRATOR, false, &HandleCastDistCommand, "", NULL }, - { "self", SEC_ADMINISTRATOR, false, &HandleCastSelfCommand, "", NULL }, - { "target", SEC_ADMINISTRATOR, false, &HandleCastTargetCommad, "", NULL }, - { "dest", SEC_ADMINISTRATOR, false, &HandleCastDestCommand, "", NULL }, - { "", SEC_ADMINISTRATOR, false, &HandleCastCommand, "", NULL }, - { NULL, 0, false, NULL, "", NULL } + { "back", SEC_ADMINISTRATOR, false, &HandleCastBackCommand, "" }, + { "dist", SEC_ADMINISTRATOR, false, &HandleCastDistCommand, "" }, + { "self", SEC_ADMINISTRATOR, false, &HandleCastSelfCommand, "" }, + { "target", SEC_ADMINISTRATOR, false, &HandleCastTargetCommad, "" }, + { "dest", SEC_ADMINISTRATOR, false, &HandleCastDestCommand, "" }, + { "", SEC_ADMINISTRATOR, false, &HandleCastCommand, "" }, + { NULL, 0, false, NULL, "" } }; - static ChatCommand commandTable[] = + static std::vector<ChatCommand> commandTable = { { "cast", SEC_ADMINISTRATOR, false, NULL, "", castCommandTable }, - { NULL, 0, false, NULL, "", NULL } + { NULL, 0, false, NULL, "" } }; return commandTable; } |