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:
commit
0f17f14cec
@ -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