Don't run AI for knocked-out actors (Fixes #1854)

This commit is contained in:
scrawl 2014-10-03 15:58:14 +02:00
parent 4859c94c72
commit 6fc53e73ad

View file

@ -148,7 +148,8 @@ bool AiSequence::isPackageDone() const
void AiSequence::execute (const MWWorld::Ptr& actor,float duration) void AiSequence::execute (const MWWorld::Ptr& actor,float duration)
{ {
if(actor != MWBase::Environment::get().getWorld()->getPlayerPtr()) if(actor != MWBase::Environment::get().getWorld()->getPlayerPtr()
&& !actor.getClass().getCreatureStats(actor).getKnockedDown())
{ {
if (!mPackages.empty()) if (!mPackages.empty())
{ {