From 358fa98bd3d4ae2641f7d47edca184ca88a2312a 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 58dcc29bbd..5ab2974def 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