diff --git a/DBCD/DBCDStorage.cs b/DBCD/DBCDStorage.cs index 7ae40c0..25d24b0 100644 --- a/DBCD/DBCDStorage.cs +++ b/DBCD/DBCDStorage.cs @@ -195,9 +195,7 @@ public void Save(string filename) public DBCDRow ConstructRow(int index) { T raw = new(); - var fieldNames = info.availableColumns; - var underlyingType = typeof(T); - var fields = underlyingType.GetFields(); + var fields = typeof(T).GetFields(); // Array Fields need to be initialized to fill their length var arrayFields = fields.Where(x => x.FieldType.IsArray); foreach (var arrayField in arrayFields)