[10780] Fixed warning in ReputationMgr::SetReputation.

This commit is contained in:
VladimirMangos 2010-11-23 23:57:42 +03:00
parent 796cf40f87
commit 26668c067b
2 changed files with 2 additions and 2 deletions

View file

@ -278,7 +278,7 @@ bool ReputationMgr::SetReputation(FactionEntry const* factionEntry, int32 standi
{ {
if (FactionEntry const *factionEntryCalc = sFactionStore.LookupEntry(*itr)) if (FactionEntry const *factionEntryCalc = sFactionStore.LookupEntry(*itr))
{ {
if (factionEntryCalc == factionEntry || GetRank(factionEntryCalc) > factionEntryCalc->spilloverMaxRankIn) if (factionEntryCalc == factionEntry || GetRank(factionEntryCalc) > ReputationRank(factionEntryCalc->spilloverMaxRankIn))
continue; continue;
int32 spilloverRep = int32(spillOverRepOut * factionEntryCalc->spilloverRateIn); int32 spilloverRep = int32(spillOverRepOut * factionEntryCalc->spilloverRateIn);
if (spilloverRep != 0 || !incremental) if (spilloverRep != 0 || !incremental)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10779" #define REVISION_NR "10780"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__