mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-23 00:31:47 -05:00
Skip over unused fields in OBJD
This commit is contained in:
parent
1482af268f
commit
3e0abd9f48
1 changed files with 2 additions and 1 deletions
|
@ -38,9 +38,10 @@ namespace OpenTS2.Files.Formats.DBPF
|
|||
|
||||
foreach (var field in ObjectDefinitionAsset.Fields)
|
||||
{
|
||||
var value = reader.ReadUInt16();
|
||||
if (field == "unused")
|
||||
continue;
|
||||
assetType.GetProperty(field).SetValue(asset, reader.ReadUInt16());
|
||||
assetType.GetProperty(field).SetValue(asset, value);
|
||||
}
|
||||
return asset;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue