fix: wrong check order
This commit is contained in:
parent
1edd965dbe
commit
305a1c6fd6
@ -1319,8 +1319,7 @@ function ThrowActiveWeapon(optional bool bDestroyWeap)
|
||||
{
|
||||
if (InvManager != none)
|
||||
foreach InvManager.InventoryActors(class'KFWeapon', TempWeapon)
|
||||
if (TempWeapon.bDropOnDeath && TempWeapon.CanThrow())
|
||||
if (TempWeapon != none)
|
||||
if (TempWeapon != none && TempWeapon.bDropOnDeath && TempWeapon.CanThrow())
|
||||
TossInventory(TempWeapon);
|
||||
}
|
||||
else
|
||||
@ -1328,6 +1327,7 @@ function ThrowActiveWeapon(optional bool bDestroyWeap)
|
||||
super.ThrowActiveWeapon(bDestroyWeap);
|
||||
}
|
||||
}
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
KnockbackResist=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user