mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix issues found during testing
This commit is contained in:
@@ -129,6 +129,8 @@ namespace SabreTools.DatItems.Formats
|
||||
public DipSwitch()
|
||||
{
|
||||
_internal = new Models.Internal.DipSwitch();
|
||||
Machine = new Machine();
|
||||
|
||||
Name = string.Empty;
|
||||
ItemType = ItemType.DipSwitch;
|
||||
}
|
||||
@@ -145,7 +147,7 @@ namespace SabreTools.DatItems.Formats
|
||||
ItemType = this.ItemType,
|
||||
DupeType = this.DupeType,
|
||||
|
||||
Machine = this.Machine?.Clone() as Machine,
|
||||
Machine = this.Machine.Clone() as Machine ?? new Machine(),
|
||||
Source = this.Source?.Clone() as Source,
|
||||
Remove = this.Remove,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user