Update DEV.md

This commit is contained in:
GenZmeY 2022-11-02 13:27:19 +03:00 committed by GitHub
parent b8bc4a58eb
commit 0c649b444e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
DEV.md
View File

@ -148,9 +148,10 @@ public function ThrowWeaponOnDeath()
{ {
local KFWeapon KFW; local KFWeapon KFW;
if (InvManager != None) if (InvManager == None) return;
foreach InvManager.InventoryActors(class'KFWeapon', KFW) foreach InvManager.InventoryActors(class'KFWeapon', KFW)
if (KFW != None && KFW.bDropOnDeath && KFW.CanThrow()) if (KFW.bDropOnDeath && KFW.CanThrow())
KFP.TossInventory(KFW); KFP.TossInventory(KFW);
} }
``` ```