mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatItem] Check parenting when merging
This commit is contained in:
@@ -784,6 +784,13 @@ namespace SabreTools.Library.DatItems
|
|||||||
saveditem.Name = file.Name;
|
saveditem.Name = file.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the current machine is a child of the new machine, use the new machine instead
|
||||||
|
if (saveditem.CloneOf == file.MachineName || saveditem.RomOf == file.MachineName)
|
||||||
|
{
|
||||||
|
saveditem.CopyMachineInformation(file);
|
||||||
|
saveditem.Name = file.Name;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user