]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Validate PresetIdCardComponent.JobName prototype ids (#21361)
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Tue, 31 Oct 2023 22:09:10 +0000 (15:09 -0700)
committerGitHub <noreply@github.com>
Tue, 31 Oct 2023 22:09:10 +0000 (15:09 -0700)
Content.Server/Access/Components/PresetIdCardComponent.cs

index a2842d7815f1572dde131092433605109b2b72eb..5badbca311d9d470198a7cd0fb5f6a85c873fc19 100644 (file)
@@ -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<JobPrototype>? JobName;
 
         [DataField("name")]
         public string? IdName;