Skip to content

Commit

Permalink
fix subcategories not being found
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Nov 16, 2024
1 parent 8739096 commit 11abfba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,11 @@ private Dictionary<string, object> CreateTree(List<LoadoutCategoryPrototype> cat
return match;

foreach (var subcategory in parent.Contents.Where(c => c is NeoTabContainer).Cast<NeoTabContainer>())
match = FindCategory(id, subcategory);
{
var res = FindCategory(id, subcategory);
if (res != null)
match ??= res;
}

return match;
}
Expand Down

0 comments on commit 11abfba

Please sign in to comment.