diff --git a/Content.Server/PAI/PAISystem.cs b/Content.Server/PAI/PAISystem.cs index 5f89c45213..016a569dd9 100644 --- a/Content.Server/PAI/PAISystem.cs +++ b/Content.Server/PAI/PAISystem.cs @@ -78,7 +78,7 @@ namespace Content.Server.PAI EntityManager.GetComponent(component.Owner).EntityName = val; - var ghostRole = AddComp(uid); + var ghostRole = EnsureComp(uid); EnsureComp(uid); ghostRole.RoleName = Loc.GetString("pai-system-role-name"); @@ -165,6 +165,7 @@ namespace Content.Server.PAI if (EntityManager.HasComponent(uid)) { EntityManager.RemoveComponent(uid); + EntityManager.RemoveComponent(uid); _popupSystem.PopupEntity(Loc.GetString("pai-system-stopped-searching"), uid, args.User); PAITurningOff(uid); }