mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[11893] Fix copy&paste error from last commit - otherwise server will crash with first loaded player pet
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
6aab5c1022
commit
c9ead52e68
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue