Fix miasma deletion error (#11385)
This commit is contained in:
parent
42f080d665
commit
d2d35afd47
|
|
@ -238,7 +238,8 @@ namespace Content.Server.Atmos.Miasma
|
|||
|
||||
private void OnFliesShutdown(EntityUid uid, FliesComponent component, ComponentShutdown args)
|
||||
{
|
||||
EntityManager.DeleteEntity(component.VirtFlies);
|
||||
if (!Terminating(uid))
|
||||
Del(component.VirtFlies);
|
||||
}
|
||||
|
||||
/// Public functions
|
||||
|
|
|
|||
Loading…
Reference in New Issue