Add loadout group check for role proto (#28731)
MFW same bug twice at 2 layers because I'm stupid.
This commit is contained in:
@@ -64,6 +64,13 @@ public sealed partial class RoleLoadout : IEquatable<RoleLoadout>
|
||||
|
||||
foreach (var (group, groupLoadouts) in SelectedLoadouts)
|
||||
{
|
||||
// Check the group is even valid for this role.
|
||||
if (!roleProto.Groups.Contains(group))
|
||||
{
|
||||
groupRemove.Add(group);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Dump if Group doesn't exist
|
||||
if (!protoManager.TryIndex(group, out var groupProto))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user