diff options
author | Shocker <shocker@freakz.ro> | 2016-06-26 14:51:37 +0300 |
---|---|---|
committer | Shocker <shocker@freakz.ro> | 2016-06-26 14:51:37 +0300 |
commit | 9ae700c809f1b02aa33131ef6ec4914bde522027 (patch) | |
tree | d1b7d97e28f7ab9d5bf4d1f07eaccdc6cccf7252 | |
parent | 55d5cd37df8f3415b71dac1e50ecc970873d6deb (diff) |
Core/Reputation: Player::SetReputation() / Player::GetReputation() should work with signed values
-rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 4 | ||||
-rw-r--r-- | src/server/game/Entities/Player/Player.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index c78b7011295..aedb283e368 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -25367,11 +25367,11 @@ void Player::SendTimeSync() GetName().c_str(), GetGUID().ToString().c_str()); } -void Player::SetReputation(uint32 factionentry, uint32 value) +void Player::SetReputation(uint32 factionentry, int32 value) { GetReputationMgr().SetReputation(sFactionStore.LookupEntry(factionentry), value); } -uint32 Player::GetReputation(uint32 factionentry) const +int32 Player::GetReputation(uint32 factionentry) const { return GetReputationMgr().GetReputation(sFactionStore.LookupEntry(factionentry)); } diff --git a/src/server/game/Entities/Player/Player.h b/src/server/game/Entities/Player/Player.h index 3c630c42fda..20739ed4148 100644 --- a/src/server/game/Entities/Player/Player.h +++ b/src/server/game/Entities/Player/Player.h @@ -1749,8 +1749,8 @@ class TC_GAME_API Player : public Unit, public GridObject<Player> void RemoveSpecializationSpells(); void SendSpellCategoryCooldowns() const; - void SetReputation(uint32 factionentry, uint32 value); - uint32 GetReputation(uint32 factionentry) const; + void SetReputation(uint32 factionentry, int32 value); + int32 GetReputation(uint32 factionentry) const; std::string GetGuildName() const; // Loot Spec |