diff --git a/DEV.md b/DEV.md index f47ba03..dc75d4e 100644 --- a/DEV.md +++ b/DEV.md @@ -148,10 +148,11 @@ public function ThrowWeaponOnDeath() { local KFWeapon KFW; - if (InvManager != None) - foreach InvManager.InventoryActors(class'KFWeapon', KFW) - if (KFW != None && KFW.bDropOnDeath && KFW.CanThrow()) - KFP.TossInventory(KFW); + if (InvManager == None) return; + + foreach InvManager.InventoryActors(class'KFWeapon', KFW) + if (KFW.bDropOnDeath && KFW.CanThrow()) + KFP.TossInventory(KFW); } ```