diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-07-20 13:27:04 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-07-20 13:27:04 +0200 |
commit | e405ac5f4100cf9e544b80cf4503b107ecee8d50 (patch) | |
tree | 155db121e093b757a215698639393841bbacb8f2 /src/server/game/Reputation/ReputationMgr.h | |
parent | 420d096b6a477856979e2810a8f68d38cbce3349 (diff) |
Fixed nopch build and some leftover warnings
Diffstat (limited to 'src/server/game/Reputation/ReputationMgr.h')
-rw-r--r-- | src/server/game/Reputation/ReputationMgr.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/server/game/Reputation/ReputationMgr.h b/src/server/game/Reputation/ReputationMgr.h index 3486a533d54..301f8833cce 100644 --- a/src/server/game/Reputation/ReputationMgr.h +++ b/src/server/game/Reputation/ReputationMgr.h @@ -25,6 +25,9 @@ #include "QueryResult.h" #include <map> +struct FactionEntry; +struct FactionTemplateEntry; + static uint32 ReputationRankStrIndex[MAX_REPUTATION_RANK] = { LANG_REP_HATED, LANG_REP_HOSTILE, LANG_REP_UNFRIENDLY, LANG_REP_NEUTRAL, @@ -83,10 +86,7 @@ class TC_GAME_API ReputationMgr FactionStateList const& GetStateList() const { return _factions; } - FactionState const* GetState(FactionEntry const* factionEntry) const - { - return factionEntry->CanHaveReputation() ? GetState(factionEntry->ReputationIndex) : NULL; - } + FactionState const* GetState(FactionEntry const* factionEntry) const; FactionState const* GetState(RepListID id) const { @@ -108,10 +108,7 @@ class TC_GAME_API ReputationMgr return ReputationRankStrIndex[GetRank(factionEntry)]; }; - ReputationRank const* GetForcedRankIfAny(FactionTemplateEntry const* factionTemplateEntry) const - { - return GetForcedRankIfAny(factionTemplateEntry->Faction); - } + ReputationRank const* GetForcedRankIfAny(FactionTemplateEntry const* factionTemplateEntry) const; ReputationRank const* GetForcedRankIfAny(uint32 factionId) const { |