Skip to content

Commit

Permalink
Update HumanoidCharacterProfile.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Jan 13, 2025
1 parent c886bf0 commit 0355b3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Shared/Preferences/HumanoidCharacterProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,17 @@ public void EnsureValid(ICommonSession session, IDependencyCollection collection

var antags = AntagPreferences
.Where(id => prototypeManager.TryIndex<AntagPrototype>(id, out var antag) && antag.SetPreference)
.Distinct()
.ToList();

var traits = TraitPreferences
.Where(prototypeManager.HasIndex<TraitPrototype>)
.Distinct()
.ToList();

var loadouts = LoadoutPreferences
.Where(l => prototypeManager.HasIndex<LoadoutPrototype>(l.LoadoutName))
.Distinct()
.ToList();

Name = name;
Expand Down

0 comments on commit 0355b3c

Please sign in to comment.