Update chat system, based on TrinityCore commit

This commit is contained in:
ShinDarth
2016-08-19 20:26:58 +02:00
parent 55c47f8a35
commit cb30a6b404
36 changed files with 751 additions and 781 deletions

View File

@@ -548,7 +548,7 @@ class CommandScript : public ScriptObject
public:
// Should return a pointer to a valid command table (ChatCommand array) to be used by ChatHandler.
virtual ChatCommand* GetCommands() const = 0;
virtual std::vector<ChatCommand> GetCommands() const = 0;
};
class WeatherScript : public ScriptObject, public UpdatableScript<Weather>
@@ -968,7 +968,7 @@ class ScriptMgr
public: /* CommandScript */
std::vector<ChatCommand*> GetChatCommands();
std::vector<ChatCommand> GetChatCommands();
public: /* WeatherScript */