Oh look, it's another "actor stops existing after taking damage" fix.

This commit is contained in:
Mari the Deer 2022-09-08 20:14:01 +02:00
commit 2378bf3175
2 changed files with 3 additions and 3 deletions

View file

@ -1028,7 +1028,7 @@ Class OnFire : Inventory
int flg = DMG_THRUSTLESS;
if ( Owner is 'Centaur' ) flg |= DMG_FOILINVUL; // you're on fire, that shield is worthless
Owner.DamageMobj(self,instigator,clamp(int(amount*.15),1,50),'Fire',flg);
if ( Owner.bISMONSTER && !Random[FlameT](0,3) )
if ( Owner && Owner.bISMONSTER && !Random[FlameT](0,3) )
Owner.Howl();
}
if ( !Owner )