diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 949285a70..94ff330fa 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5448,7 +5448,7 @@ bool Unit::IsHostileTo(Unit const* unit) const if (tester_faction->faction) { // forced reaction - if (ReputationRank const* force = ((Player*)unit)->GetReputationMgr().GetForcedRankIfAny(tester_faction)) + if (ReputationRank const* force = ((Player*)target)->GetReputationMgr().GetForcedRankIfAny(tester_faction)) return *force <= REP_HOSTILE; // apply reputation state @@ -5560,7 +5560,7 @@ bool Unit::IsFriendlyTo(Unit const* unit) const if (tester_faction->faction) { // forced reaction - if (ReputationRank const* force =((Player*)unit)->GetReputationMgr().GetForcedRankIfAny(tester_faction)) + if (ReputationRank const* force =((Player*)target)->GetReputationMgr().GetForcedRankIfAny(tester_faction)) return *force >= REP_FRIENDLY; // apply reputation state diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 3b3f2a4b1..a8b847819 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11892" + #define REVISION_NR "11893" #endif // __REVISION_NR_H__