From 4a1a460241acf511467decd92d2a30e19927d74d Mon Sep 17 00:00:00 2001 From: treeston Date: Tue, 20 Sep 2016 13:23:21 +0200 Subject: PCH build fix. Again. (( Alright, you made me waste 20 minutes of my life on a full nonPCH rebuild of the core now. )) (( I hope you're happy. )) --- src/server/game/Scripting/ScriptSystem.cpp | 6 ++++++ src/server/game/Scripting/ScriptSystem.h | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/server/game/Scripting') diff --git a/src/server/game/Scripting/ScriptSystem.cpp b/src/server/game/Scripting/ScriptSystem.cpp index ff81f315d9f..63a8e6783bf 100644 --- a/src/server/game/Scripting/ScriptSystem.cpp +++ b/src/server/game/Scripting/ScriptSystem.cpp @@ -20,6 +20,7 @@ #include "ObjectMgr.h" #include "DatabaseEnv.h" #include "ScriptMgr.h" +#include "Creature.h" SystemMgr* SystemMgr::instance() { @@ -153,3 +154,8 @@ void SystemMgr::LoadScriptSplineChains() TC_LOG_INFO("server.loading", ">> Loaded spline chain data for %u chains, consisting of %u splines with %u waypoints in %u ms", chainCount, splineCount, wpCount, GetMSTimeDiffToNow(oldMSTime)); } } + +SplineChain const* SystemMgr::GetSplineChain(Creature const* who, uint8 id) const +{ + return GetSplineChain(who->GetEntry(), id); +} diff --git a/src/server/game/Scripting/ScriptSystem.h b/src/server/game/Scripting/ScriptSystem.h index bd6b9a4a294..860ca08a3f3 100644 --- a/src/server/game/Scripting/ScriptSystem.h +++ b/src/server/game/Scripting/ScriptSystem.h @@ -8,6 +8,8 @@ #include "ScriptMgr.h" #include "SplineChain.h" +class Creature; + #define TEXT_SOURCE_RANGE -1000000 //the amount of entries each text source has available /// @todo find better namings and definitions. @@ -79,10 +81,7 @@ class TC_GAME_API SystemMgr return &it->second; } - SplineChain const* GetSplineChain(Creature const* who, uint8 id) const - { - return GetSplineChain(who->GetEntry(), id); - } + SplineChain const* GetSplineChain(Creature const* who, uint8 id) const; protected: PointMoveMap m_mPointMoveMap; //coordinates for waypoints -- cgit v1.2.3