diff --git a/Assets/Scripts/OpenTS2/Files/Formats/DBPF/DBPFFile.cs b/Assets/Scripts/OpenTS2/Files/Formats/DBPF/DBPFFile.cs index 666b867..0fa6877 100644 --- a/Assets/Scripts/OpenTS2/Files/Formats/DBPF/DBPFFile.cs +++ b/Assets/Scripts/OpenTS2/Files/Formats/DBPF/DBPFFile.cs @@ -196,7 +196,7 @@ namespace OpenTS2.Files.Formats.DBPF } bool _deleted = false; public bool DeleteIfEmpty = true; - private readonly DBPFFileChanges _changes; + private DBPFFileChanges _changes; public ContentProvider Provider = null; /// @@ -410,9 +410,10 @@ namespace OpenTS2.Files.Formats.DBPF Filesystem.Write(FilePath, data); var stream = File.OpenRead(FilePath); Read(stream); - Changes.Clear(); + _changes = new DBPFFileChanges(this); return; } + /// /// Serializes package with all resource changes, additions and deletions. ///