mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-11 13:25:53 -04: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;
|
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…
x
Reference in New Issue
Block a user