mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, DatItem] Fix desc-to-name replacements
Previously, sets that had multiple items would trigger issues because of shared information in the items, mostly the Machine parts. By making all of it a clone, it takes a little more memory but ends up resolving all issues in desc-to-name mapping and replacement.
This commit is contained in:
@@ -4,7 +4,7 @@ using SabreTools.Library.Data;
|
||||
|
||||
namespace SabreTools.Library.Dats
|
||||
{
|
||||
public class Disk : DatItem, ICloneable
|
||||
public class Disk : DatItem
|
||||
{
|
||||
#region Private instance variables
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace SabreTools.Library.Dats
|
||||
|
||||
#region Cloning Methods
|
||||
|
||||
public object Clone()
|
||||
public new object Clone()
|
||||
{
|
||||
return new Disk()
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace SabreTools.Library.Dats
|
||||
Type = this.Type,
|
||||
Dupe = this.Dupe,
|
||||
|
||||
Machine = this.Machine,
|
||||
Machine = (Machine)this.Machine.Clone(),
|
||||
|
||||
Supported = this.Supported,
|
||||
Publisher = this.Publisher,
|
||||
|
||||
Reference in New Issue
Block a user