FlammableComponent: Fix bug where if an AI ends up on fire an exception occurs because it tries to update status (#2714)

This commit is contained in:
20kdc
2020-12-06 20:10:56 +00:00
committed by GitHub
parent 69924ab600
commit 684b942445

View File

@@ -100,7 +100,7 @@ namespace Content.Server.GameObjects.Components.Atmos
return;
}
status.ShowAlert(AlertType.Fire, onClickAlert: OnClickAlert);
status?.ShowAlert(AlertType.Fire, onClickAlert: OnClickAlert);
if (FireStacks > 0)
{