From bb36155a5452b87e02c64afd3073a01a7d020ab8 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sun, 15 Jan 2023 17:08:57 +0100 Subject: [PATCH] End combat when the target is outside the active grid --- apps/openmw/mwmechanics/aicombat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp index 17e42442d3..512d55699e 100644 --- a/apps/openmw/mwmechanics/aicombat.cpp +++ b/apps/openmw/mwmechanics/aicombat.cpp @@ -112,7 +112,7 @@ namespace MWMechanics MWWorld::Ptr target = MWBase::Environment::get().getWorld()->searchPtrViaActorId(mTargetActorId); if (target.isEmpty()) - return false; + return true; if(!target.getRefData().getCount() || !target.getRefData().isEnabled() // Really we should be checking whether the target is currently registered // with the MechanicsManager