diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-06 23:36:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 23:36:23 +0200 |
commit | b63d655e20a0facf14fc77798c52ea67d8551fa7 (patch) | |
tree | 296a3fa0db1abecf9646785b8ee128eab65263fd /src/server/game/Chat/Chat.cpp | |
parent | 67b112f8a4862a521daf96b2f738db81a649e79d (diff) |
[3.3.5] Scripts/Commands: .arena command conversion (PR #25407)
Diffstat (limited to 'src/server/game/Chat/Chat.cpp')
-rw-r--r-- | src/server/game/Chat/Chat.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index b41578717de..6d59c3d5efd 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -31,8 +31,11 @@ #include "Realm.h" #include "ScriptMgr.h" #include "World.h" +#include "WorldSession.h" #include <boost/algorithm/string/replace.hpp> +Player* ChatHandler::GetPlayer() { return m_session ? m_session->GetPlayer() : nullptr; } + // Lazy loading of the command table cache from commands and the // ScriptMgr should be thread safe since the player commands, // cli commands and ScriptMgr updates are all dispatched one after |