Hardcoded classes removed #8

Merged
NikC- merged 8 commits from :zedtest4 into master 2022-01-21 20:40:09 +03:00
Showing only changes of commit d697163803 - Show all commits

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;