mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Fixed nopch build and some leftover warnings
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user