Check that a dropped backpack belongs to a controllable merc (#320)

Fixes handle BP pickup behavior if a merc drops a backpack and then leaves the sector.
This commit is contained in:
Asdow
2024-08-10 20:14:15 +03:00
committed by GitHub
parent f7f214f347
commit a26845b608
+1 -1
View File
@@ -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;