From 8b97133d6d60f733a71e102f8a036855bc4671f5 Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Sat, 10 Aug 2024 20:07:19 +0300 Subject: [PATCH] Check that a dropped backpack belongs to a controllable merc Fixes handle BP pickup behavior if a merc drops a backpack and then leaves the sector. --- Tactical/Turn Based Input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tactical/Turn Based Input.cpp b/Tactical/Turn Based Input.cpp index abc7738084..4cb81bccd4 100644 --- a/Tactical/Turn Based Input.cpp +++ b/Tactical/Turn Based Input.cpp @@ -8318,7 +8318,7 @@ void HandleTBBackpacks(void) { pTeamSoldier = MercPtrs[ubLoop]; - if (pTeamSoldier->flags.DropPackFlag) + if (OK_CONTROLLABLE_MERC(pTeamSoldier) && pTeamSoldier->flags.DropPackFlag) { backpackDropped = true; break;