mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-13 21:41:29 +00:00
Explicitely add the initial actor to the set of its allies
This commit is contained in:
parent
0603aa131d
commit
ff9f010d99
1 changed files with 1 additions and 0 deletions
|
@ -451,6 +451,7 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
std::set<MWWorld::Ptr> allySet;
|
std::set<MWWorld::Ptr> allySet;
|
||||||
getActorsSidingWith(ptr, allySet);
|
getActorsSidingWith(ptr, allySet);
|
||||||
|
allySet.insert(ptr);
|
||||||
std::vector<MWWorld::Ptr> allies(allySet.begin(), allySet.end());
|
std::vector<MWWorld::Ptr> allies(allySet.begin(), allySet.end());
|
||||||
for(const auto& ally : allies)
|
for(const auto& ally : allies)
|
||||||
ally.getClass().getCreatureStats(ally).getAiSequence().stopCombat(targets);
|
ally.getClass().getCreatureStats(ally).getAiSequence().stopCombat(targets);
|
||||||
|
|
Loading…
Reference in a new issue