mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-09 02:16:55 +00:00
Make Source inherent to DatItem instead of passing through
This commit is contained in:
@@ -1169,8 +1169,8 @@ namespace SabreTools.Metadata.DatFiles
|
||||
// Compare on source if renaming
|
||||
if (!norename)
|
||||
{
|
||||
int xSourceIndex = x.Read<Source?>(DatItem.SourceKey)?.Index ?? 0;
|
||||
int ySourceIndex = y.Read<Source?>(DatItem.SourceKey)?.Index ?? 0;
|
||||
int xSourceIndex = x.Source?.Index ?? 0;
|
||||
int ySourceIndex = y.Source?.Index ?? 0;
|
||||
if (xSourceIndex != ySourceIndex)
|
||||
return xSourceIndex - ySourceIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user