mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-23 17:09:23 +01:00
Add fix for unimplemented but listed hairstyle.
This commit is contained in:
parent
9e7c5e9a89
commit
1a4bacf0b7
2 changed files with 75 additions and 50 deletions
|
|
@ -63,9 +63,14 @@ namespace Glamourer.Customization
|
|||
continue;
|
||||
|
||||
var hairRow = _customizeSheet.GetRow(customizeIdx);
|
||||
hairList.Add(hairRow != null
|
||||
? new Customization(CustomizationId.Hairstyle, hairRow.FeatureID, hairRow.Icon, (ushort) hairRow.RowId)
|
||||
: new Customization(CustomizationId.Hairstyle, (byte) i, customizeIdx, 0));
|
||||
if (hairRow == null)
|
||||
{
|
||||
hairList.Add(new Customization(CustomizationId.Hairstyle, (byte)i, customizeIdx));
|
||||
}
|
||||
else if (_icons.IconExists(hairRow.Icon))
|
||||
{
|
||||
hairList.Add(new Customization(CustomizationId.Hairstyle, hairRow.FeatureID, hairRow.Icon, (ushort)hairRow.RowId));
|
||||
}
|
||||
}
|
||||
|
||||
return hairList.ToArray();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue