From ff9f010d99f1330401d7bdda2241672f9fda9dda Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sat, 11 Dec 2021 15:30:57 +0100 Subject: [PATCH] Explicitely add the initial actor to the set of its allies --- apps/openmw/mwmechanics/actors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index ce2465ec97..d5d434e128 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -451,6 +451,7 @@ namespace MWMechanics { std::set allySet; getActorsSidingWith(ptr, allySet); + allySet.insert(ptr); std::vector allies(allySet.begin(), allySet.end()); for(const auto& ally : allies) ally.getClass().getCreatureStats(ally).getAiSequence().stopCombat(targets);