summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_achievement.cpp
diff options
context:
space:
mode:
authorShinDarth <borzifrancesco@gmail.com>2016-08-19 20:26:58 +0200
committerShinDarth <borzifrancesco@gmail.com>2016-08-19 20:26:58 +0200
commitcb30a6b4043737957aa1d1bca27601c6577a80ec (patch)
tree2377147dbb71c8b982ea949fc5debdf4417a588a /src/scripts/Commands/cs_achievement.cpp
parent55c47f8a35a294ff702e29c49da6c81b22ec6e5a (diff)
Update chat system, based on TrinityCore commit
Diffstat (limited to 'src/scripts/Commands/cs_achievement.cpp')
-rw-r--r--src/scripts/Commands/cs_achievement.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scripts/Commands/cs_achievement.cpp b/src/scripts/Commands/cs_achievement.cpp
index 282170aafc..5236efa406 100644
--- a/src/scripts/Commands/cs_achievement.cpp
+++ b/src/scripts/Commands/cs_achievement.cpp
@@ -22,18 +22,18 @@ class achievement_commandscript : public CommandScript
public:
achievement_commandscript() : CommandScript("achievement_commandscript") { }
- ChatCommand* GetCommands() const
+ std::vector<ChatCommand> GetCommands() const override
{
- static ChatCommand achievementCommandTable[] =
+ static std::vector<ChatCommand> achievementCommandTable =
{
- { "add", SEC_ADMINISTRATOR, false, &HandleAchievementAddCommand, "", NULL },
- { "checkall", SEC_ADMINISTRATOR, false, &HandleAchievementCheckAllCommand, "", NULL },
- { NULL, 0, false, NULL, "", NULL }
+ { "add", SEC_ADMINISTRATOR, false, &HandleAchievementAddCommand, "" },
+ { "checkall", SEC_ADMINISTRATOR, false, &HandleAchievementCheckAllCommand, "" },
+ { NULL, 0, false, NULL, "" }
};
- static ChatCommand commandTable[] =
+ static std::vector<ChatCommand> commandTable =
{
{ "achievement", SEC_ADMINISTRATOR, false, NULL, "", achievementCommandTable },
- { NULL, 0, false, NULL, "", NULL }
+ { NULL, 0, false, NULL, "" }
};
return commandTable;
}