Hotfix: I keep forgetting that sometimes actors can cease to exist out of the blue.

This commit is contained in:
Marisa the Magician 2019-09-18 16:49:53 +02:00
commit ab6b3519d1

View file

@ -123,7 +123,10 @@ Class FlakAccumulator : Thinker
if ( victim.health-total <= gibhealth ) inflictor.bEXTREMEDEATH = true;
// 何?
for ( int i=0; i<amounts.Size(); i++ )
{
if ( !victim ) break;
victim.DamageMobj(inflictor,source,amounts[i],type,DMG_THRUSTLESS);
}
inflictor.bEXTREMEDEATH = oldxd;
Destroy();
}