@@ -74,19 +74,18 @@ public sealed class RoleLoadout
|
||||
{
|
||||
var loadout = loadouts[i];
|
||||
|
||||
// Old prototype or otherwise invalid.
|
||||
if (!protoManager.TryIndex(loadout.Prototype, out var loadoutProto))
|
||||
{
|
||||
loadouts.RemoveAt(i);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Malicious client maybe, check the group even has it.
|
||||
if (!groupProto.Loadouts.Contains(loadout.Prototype))
|
||||
{
|
||||
loadouts.RemoveAt(i);
|
||||
continue;
|
||||
}
|
||||
// Похуй FIXME
|
||||
//if (!IsValid(profile, session, loadout.Prototype, collection, out _))
|
||||
// {
|
||||
// loadouts.RemoveAt(i);
|
||||
// continue;
|
||||
// }
|
||||
|
||||
Apply(loadoutProto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user