mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 12:39:59 +00:00
Replace a redundant playerAllies check with a boolean (Fixes #4229)
This commit is contained in:
parent
9b8c56761b
commit
42b7846f81
@ -391,7 +391,7 @@ namespace MWMechanics
|
||||
{
|
||||
// Player followers and escorters with high fight should not initiate combat with the player or with
|
||||
// other player followers or escorters
|
||||
if (std::find(playerAllies.begin(), playerAllies.end(), actor1) == playerAllies.end())
|
||||
if (!isPlayerFollowerOrEscorter)
|
||||
aggressive = MWBase::Environment::get().getMechanicsManager()->isAggressive(actor1, actor2);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user