mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Explicitely add the initial actor to the set of its allies
This commit is contained in:
parent
0603aa131d
commit
ff9f010d99
@ -451,6 +451,7 @@ namespace MWMechanics
|
||||
{
|
||||
std::set<MWWorld::Ptr> allySet;
|
||||
getActorsSidingWith(ptr, allySet);
|
||||
allySet.insert(ptr);
|
||||
std::vector<MWWorld::Ptr> allies(allySet.begin(), allySet.end());
|
||||
for(const auto& ally : allies)
|
||||
ally.getClass().getCreatureStats(ally).getAiSequence().stopCombat(targets);
|
||||
|
Loading…
x
Reference in New Issue
Block a user