From 2531e24ee36f5a0a2f99469181523908fda19ee6 Mon Sep 17 00:00:00 2001
From: Evil Eye <malusluminis@hotmail.com>
Date: Mon, 16 May 2022 18:29:16 +0200
Subject: [PATCH] Fix inverted logic

---
 apps/openmw/mwmechanics/actors.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp
index 5e2e083648..fb78beb8cf 100644
--- a/apps/openmw/mwmechanics/actors.cpp
+++ b/apps/openmw/mwmechanics/actors.cpp
@@ -76,7 +76,7 @@ bool isCommanded(const MWWorld::Ptr& actor)
 // Check for command effects having ended and remove package if necessary
 void adjustCommandedActor (const MWWorld::Ptr& actor)
 {
-    if (!isCommanded(actor))
+    if (isCommanded(actor))
         return;
 
     MWMechanics::CreatureStats& stats = actor.getClass().getCreatureStats(actor);