1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Stop combat when adding an AI package to an actor

(Fixes #3722)
This commit is contained in:
Allofich 2017-01-12 00:32:36 +09:00
parent b87abb0456
commit a46c4de918

View file

@ -281,6 +281,10 @@ void AiSequence::stack (const AiPackage& package, const MWWorld::Ptr& actor)
}
}
// Stop combat when a non-combat AI package is added
if (isActualAiPackage(package.getTypeId()))
stopCombat();
// remove previous packages if required
if (package.shouldCancelPreviousAi())
{