From b63d655e20a0facf14fc77798c52ea67d8551fa7 Mon Sep 17 00:00:00 2001 From: Treeston Date: Sun, 6 Sep 2020 23:36:23 +0200 Subject: [3.3.5] Scripts/Commands: .arena command conversion (PR #25407) --- src/server/game/Chat/Chat.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/game/Chat/Chat.cpp') 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 +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 -- cgit v1.2.3