mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Added missed return statement
This commit is contained in:
parent
cab51d26cc
commit
e9d0bf7c12
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user