forked from Mirrors/openclonk
OnInIncendiaryMaterial: check for object removal after energy loss
parent
57a35bf01b
commit
2df2946016
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue