]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[HOTFIX] Fix Loadout Validations (#40189)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Wed, 10 Sep 2025 17:31:12 +0000 (10:31 -0700)
committerGitHub <noreply@github.com>
Wed, 10 Sep 2025 17:31:12 +0000 (19:31 +0200)
p0 bugfix

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/Preferences/HumanoidCharacterProfile.cs

index f22669ddc70ec486fb41f58cac79a9bb4f178d25..dbfeb0ab3cd36ad6e4d6ec540eedfa1ce5b2128e 100644 (file)
@@ -631,6 +631,9 @@ namespace Content.Shared.Preferences
                     continue;
                 }
 
+                // This happens after we verify the prototype exists
+                // These values are set equal in the database and we need to make sure they're equal here too!
+                loadouts.Role = roleName;
                 loadouts.EnsureValid(this, session, collection);
             }