From 684b942445a7cc5fa8130c7c3968be666a38206e Mon Sep 17 00:00:00 2001 From: 20kdc Date: Sun, 6 Dec 2020 20:10:56 +0000 Subject: [PATCH] FlammableComponent: Fix bug where if an AI ends up on fire an exception occurs because it tries to update status (#2714) --- .../GameObjects/Components/Atmos/FlammableComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Atmos/FlammableComponent.cs b/Content.Server/GameObjects/Components/Atmos/FlammableComponent.cs index 5eda5aa53d..3bfdcd27f9 100644 --- a/Content.Server/GameObjects/Components/Atmos/FlammableComponent.cs +++ b/Content.Server/GameObjects/Components/Atmos/FlammableComponent.cs @@ -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) {