Fix exception with miasma system (#11484)

This commit is contained in:
Morb
2022-10-09 22:47:42 +03:00
committed by GitHub
parent 755a31c533
commit 063874183a

View File

@@ -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);
}