mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix odd access of machine in ORPG
This commit is contained in:
@@ -454,7 +454,7 @@ namespace SabreTools.DatFiles
|
||||
if (machineName.StartsWith("Default"))
|
||||
machineName = machineName.Substring("Default".Length + 1);
|
||||
|
||||
datItem.GetFieldValue<Machine>(DatItem.MachineKey)!.SetFieldValue<string?>(Models.Metadata.Machine.NameKey, machineName);
|
||||
machine.SetFieldValue<string?>(Models.Metadata.Machine.NameKey, machineName);
|
||||
datItem.SetName(Path.GetFileName(datItem.GetName()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user