deleted check (#8893)

This commit is contained in:
EmoGarbage404
2022-06-17 03:22:09 -04:00
committed by GitHub
parent ce715a2851
commit 9adcb48173
2 changed files with 5 additions and 3 deletions

View File

@@ -49,6 +49,9 @@ namespace Content.Server.Polymorph.Systems
if (!TryComp<PolymorphedEntityComponent>(uid, out var component))
return;
if (Deleted(component.Parent))
return;
var proto = component.Prototype;
var uidXform = Transform(uid);