mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11892"
|
||||
#define REVISION_NR "11893"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue