Fix some over-accessible fields

This commit is contained in:
Matt Nadareski
2024-10-19 23:17:37 -04:00
parent 16f173099d
commit 4d5ac92125
15 changed files with 142 additions and 154 deletions

View File

@@ -33,7 +33,7 @@ namespace SabreTools.DatFiles.Formats
// Prepare all internal variables
var sr = new StreamReader(System.IO.File.OpenRead(filename), new UTF8Encoding(false));
var jtr = new JsonTextReader(sr);
var source = new Source { Index = indexId, Name = filename };
var source = new Source(indexId, filename);
long sourceIndex = ItemsDB.AddSource(source);
// If we got a null reader, just return