Fix misleading comments around copying information

This commit is contained in:
Matt Nadareski
2025-01-07 15:03:27 -05:00
parent 15ac732877
commit 7a7c3b2b2a
2 changed files with 4 additions and 4 deletions

View File

@@ -810,7 +810,7 @@ namespace SabreTools.DatFiles
var savedMachine = _machines[_itemToMachineMapping[savedIndex]];
var itemMachine = _machines[_itemToMachineMapping[itemIndex]];
// If the current system has a lower ID than the previous, set the system accordingly
// If the current source has a lower ID than the saved, use the saved source
if (itemSource?.Index < savedSource?.Index)
{
_itemToSourceMapping[itemIndex] = _itemToSourceMapping[savedIndex];
@@ -818,7 +818,7 @@ namespace SabreTools.DatFiles
savedItem.SetName(datItem.GetName());
}
// If the current machine is a child of the new machine, use the new machine instead
// If the saved machine is a child of the current machine, use the current machine instead
if (savedMachine.GetStringFieldValue(Models.Metadata.Machine.CloneOfKey) == itemMachine.GetStringFieldValue(Models.Metadata.Machine.NameKey)
|| savedMachine.GetStringFieldValue(Models.Metadata.Machine.RomOfKey) == itemMachine.GetStringFieldValue(Models.Metadata.Machine.NameKey))
{