Skip to content

Commit

Permalink
PCH build fix. Again.
Browse files Browse the repository at this point in the history
(( Alright, you made me waste 20 minutes of my life on a full nonPCH rebuild of the core now. ))
(( I hope you're happy. ))
  • Loading branch information
Treeston committed Sep 20, 2016
1 parent 4fa646c commit 4a1a460
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/server/game/Scripting/ScriptSystem.cpp
Expand Up @@ -20,6 +20,7 @@
#include "ObjectMgr.h"
#include "DatabaseEnv.h"
#include "ScriptMgr.h"
#include "Creature.h"

SystemMgr* SystemMgr::instance()
{
Expand Down Expand Up @@ -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);
}
7 changes: 3 additions & 4 deletions src/server/game/Scripting/ScriptSystem.h
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a1a460

Please sign in to comment.