diff options
author | joschiwald <joschiwald.trinity@gmail.com> | 2014-12-29 01:00:16 +0100 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2014-12-29 01:00:16 +0100 |
commit | 9ecc578cb187cc1ae0fd454883dab0cd058d3807 (patch) | |
tree | 6322b594c6ff6958de870dc5b4f0effee1f6e5c7 /src/server/game/Reputation/ReputationMgr.cpp | |
parent | 21360bb50c6a1390fbeb51c9c27bb0823ad0f252 (diff) |
Core/Scripts: multiple changes
- fixed non pch build
- fixed some warnings
- fixed some coverity issues
- some random things here and there
Diffstat (limited to 'src/server/game/Reputation/ReputationMgr.cpp')
-rw-r--r-- | src/server/game/Reputation/ReputationMgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Reputation/ReputationMgr.cpp b/src/server/game/Reputation/ReputationMgr.cpp index 3bf3464f016..0a0980691ed 100644 --- a/src/server/game/Reputation/ReputationMgr.cpp +++ b/src/server/game/Reputation/ReputationMgr.cpp @@ -243,7 +243,7 @@ void ReputationMgr::Initialize() { FactionEntry const* factionEntry = sFactionStore.LookupEntry(i); - if (factionEntry && (factionEntry->ReputationIndex >= 0)) + if (factionEntry && factionEntry->CanHaveReputation()) { FactionState newFaction; newFaction.ID = factionEntry->ID; @@ -395,7 +395,7 @@ void ReputationMgr::SetVisible(FactionTemplateEntry const* factionTemplateEntry) void ReputationMgr::SetVisible(FactionEntry const* factionEntry) { - if (factionEntry->ReputationIndex < 0) + if (!factionEntry->CanHaveReputation()) return; FactionStateList::iterator itr = _factions.find(factionEntry->ReputationIndex); @@ -499,7 +499,7 @@ void ReputationMgr::LoadFromDB(PreparedQueryResult result) Field* fields = result->Fetch(); FactionEntry const* factionEntry = sFactionStore.LookupEntry(fields[0].GetUInt16()); - if (factionEntry && (factionEntry->ReputationIndex >= 0)) + if (factionEntry && factionEntry->CanHaveReputation()) { FactionState* faction = &_factions[factionEntry->ReputationIndex]; |