From: DrSmugleaf Date: Tue, 31 Oct 2023 22:09:10 +0000 (-0700) Subject: Validate PresetIdCardComponent.JobName prototype ids (#21361) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3a4c40c29b99bbeaeef666afa9b1db3037ece7bb;p=space-station-14.git Validate PresetIdCardComponent.JobName prototype ids (#21361) --- diff --git a/Content.Server/Access/Components/PresetIdCardComponent.cs b/Content.Server/Access/Components/PresetIdCardComponent.cs index a2842d7815..5badbca311 100644 --- a/Content.Server/Access/Components/PresetIdCardComponent.cs +++ b/Content.Server/Access/Components/PresetIdCardComponent.cs @@ -1,10 +1,13 @@ +using Content.Shared.Roles; +using Robust.Shared.Prototypes; + namespace Content.Server.Access.Components { [RegisterComponent] public sealed partial class PresetIdCardComponent : Component { [DataField("job")] - public string? JobName; + public ProtoId? JobName; [DataField("name")] public string? IdName;