From e9d0bf7c1270652394ac17081a306007d521fbc7 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 11 Jun 2017 15:06:44 +0400 Subject: [PATCH] Added missed return statement --- apps/openmw/mwmechanics/aipackage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwmechanics/aipackage.cpp b/apps/openmw/mwmechanics/aipackage.cpp index 62fd56bec7..529e7ca410 100644 --- a/apps/openmw/mwmechanics/aipackage.cpp +++ b/apps/openmw/mwmechanics/aipackage.cpp @@ -183,7 +183,10 @@ void MWMechanics::AiPackage::evadeObstacles(const MWWorld::Ptr& actor, float dur if (getTypeId() != TypeIdWander && !door.getCellRef().getTeleport() && door.getClass().getDoorState(door) == 0) { if ((door.getCellRef().getTrap().empty() && door.getCellRef().getLockLevel() <= 0 )) + { MWBase::Environment::get().getWorld()->activate(door, actor); + return; + } std::string keyId = door.getCellRef().getKey(); if (keyId.empty())