Fix miasma deletion error (#11385)

This commit is contained in:
Leon Friedrich 2022-09-18 11:10:32 +12:00 committed by GitHub
parent 42f080d665
commit d2d35afd47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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