diff options
author | treeston <treeston.mmoc@gmail.com> | 2016-09-20 13:23:21 +0200 |
---|---|---|
committer | treeston <treeston.mmoc@gmail.com> | 2016-09-20 13:23:21 +0200 |
commit | 4a1a460241acf511467decd92d2a30e19927d74d (patch) | |
tree | f7ae214e92e5e3dbf7c37af3a69fe31cbf73e911 /src | |
parent | 4fa646c0b2ae3261e7fab249f4177900d4c8d013 (diff) |
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. ))
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Scripting/ScriptSystem.cpp | 6 | ||||
-rw-r--r-- | src/server/game/Scripting/ScriptSystem.h | 7 |
2 files changed, 9 insertions, 4 deletions
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 |