double inv != none check removed

This commit is contained in:
Shtoyan 2022-01-21 18:07:49 +04:00
parent 8609b8fef8
commit d697163803

View File

@ -31,8 +31,7 @@ function Poison(KFHumanPawn poisonedPawn)
{ {
for (I = poisonedPawn.Inventory; I != none; I = I.Inventory) for (I = poisonedPawn.Inventory; I != none; I = I.Inventory)
{ {
// why we double check Inv != none here??? if (MeanPoisonInventory(I) != none)
if (I != none && MeanPoisonInventory(I) != none)
{ {
bFoundPoison = true; bFoundPoison = true;
MeanPoisonInventory(I).poisonStartTime = Level.TimeSeconds; MeanPoisonInventory(I).poisonStartTime = Level.TimeSeconds;