Fix checking the flags for all races and genders for specific IDs in shapes/attributes.

This commit is contained in:
Ottermandias 2025-05-30 14:36:33 +02:00
parent ff2a9f95c4
commit 74bd1cf911

View file

@ -59,7 +59,7 @@ public sealed class ShapeAttributeHashSet : Dictionary<(HumanSlot Slot, PrimaryI
private bool ContainsEntry(HumanSlot slot, PrimaryId id, GenderRace genderRace)
=> GenderRaceIndices.TryGetValue(genderRace, out var index)
&& TryGetValue((slot, id), out var flags)
&& (flags & (1ul << index)) is not 0;
&& ((flags & 1ul) is not 0 || (flags & (1ul << index)) is not 0);
public bool TrySet(HumanSlot slot, PrimaryId? id, GenderRace genderRace, bool value)
{