diff options
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 |