summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_reset.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_reset.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_reset.cpp')
-rw-r--r--src/scripts/Commands/cs_reset.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/scripts/Commands/cs_reset.cpp b/src/scripts/Commands/cs_reset.cpp
index 35f04c7590..dab643fd95 100644
--- a/src/scripts/Commands/cs_reset.cpp
+++ b/src/scripts/Commands/cs_reset.cpp
@@ -24,23 +24,23 @@ class reset_commandscript : public CommandScript
public:
reset_commandscript() : CommandScript("reset_commandscript") { }
- ChatCommand* GetCommands() const
+ std::vector<ChatCommand> GetCommands() const override
{
- static ChatCommand resetCommandTable[] =
+ static std::vector<ChatCommand> resetCommandTable =
{
- { "achievements", SEC_ADMINISTRATOR, true, &HandleResetAchievementsCommand, "", NULL },
- { "honor", SEC_ADMINISTRATOR, true, &HandleResetHonorCommand, "", NULL },
- { "level", SEC_ADMINISTRATOR, true, &HandleResetLevelCommand, "", NULL },
- { "spells", SEC_ADMINISTRATOR, true, &HandleResetSpellsCommand, "", NULL },
- { "stats", SEC_ADMINISTRATOR, true, &HandleResetStatsCommand, "", NULL },
- { "talents", SEC_ADMINISTRATOR, true, &HandleResetTalentsCommand, "", NULL },
- { "all", SEC_ADMINISTRATOR, true, &HandleResetAllCommand, "", NULL },
- { NULL, 0, false, NULL, "", NULL }
+ { "achievements", SEC_ADMINISTRATOR, true, &HandleResetAchievementsCommand, "" },
+ { "honor", SEC_ADMINISTRATOR, true, &HandleResetHonorCommand, "" },
+ { "level", SEC_ADMINISTRATOR, true, &HandleResetLevelCommand, "" },
+ { "spells", SEC_ADMINISTRATOR, true, &HandleResetSpellsCommand, "" },
+ { "stats", SEC_ADMINISTRATOR, true, &HandleResetStatsCommand, "" },
+ { "talents", SEC_ADMINISTRATOR, true, &HandleResetTalentsCommand, "" },
+ { "all", SEC_ADMINISTRATOR, true, &HandleResetAllCommand, "" },
+ { NULL, 0, false, NULL, "" }
};
- static ChatCommand commandTable[] =
+ static std::vector<ChatCommand> commandTable =
{
{ "reset", SEC_ADMINISTRATOR, true, NULL, "", resetCommandTable },
- { NULL, 0, false, NULL, "", NULL }
+ { NULL, 0, false, NULL, "" }
};
return commandTable;
}