From 063874183a9eeaabf6d4696f3fcd4d75d5124c42 Mon Sep 17 00:00:00 2001 From: Morb <14136326+Morb0@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:47:42 +0300 Subject: [PATCH] Fix exception with miasma system (#11484) --- Content.Server/Atmos/Miasma/MiasmaSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Atmos/Miasma/MiasmaSystem.cs b/Content.Server/Atmos/Miasma/MiasmaSystem.cs index 5d66045167..d14602a248 100644 --- a/Content.Server/Atmos/Miasma/MiasmaSystem.cs +++ b/Content.Server/Atmos/Miasma/MiasmaSystem.cs @@ -238,7 +238,7 @@ namespace Content.Server.Atmos.Miasma private void OnFliesShutdown(EntityUid uid, FliesComponent component, ComponentShutdown args) { - if (!Terminating(uid)) + if (!Terminating(uid) && !Deleted(uid)) Del(component.VirtFlies); }