1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Merge branch 'no_more_i_yield' into 'master'

Explicitely add the initial actor to the set of its allies

See merge request OpenMW/openmw!1474
This commit is contained in:
psi29a 2021-12-11 16:36:54 +00:00
commit 0f17f14cec

View File

@ -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);