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

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r416 \cu(Thu 8 Sep 20:13:19 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r416 \cu(2022-09-08 20:13:19)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r417 \cu(Thu 8 Sep 20:14:01 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r417 \cu(2022-09-08 20:14:01)\c-";

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 )