From 0c649b444e0f4cd4467b1d992a84aaa69ef94dd4 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 2 Nov 2022 13:27:19 +0300 Subject: [PATCH] Update DEV.md --- DEV.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); } ```