OnInIncendiaryMaterial: check for object removal after energy loss

qteditor
David Dormagen 2016-05-27 22:19:41 +02:00
parent 57a35bf01b
commit 2df2946016
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ global func Incinerate(
global func OnInIncendiaryMaterial()
{
this->DoEnergy(-7, false, FX_Call_EngFire, NO_OWNER);
// The object might have removed itself.
if (!this) return true;
return this->Incinerate(15, NO_OWNER);
}