From 01906209c9f4104ebd2b4ef3825311d76b20a742 Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Sat, 15 Apr 2023 15:43:10 +0300 Subject: [PATCH] BundleFile: fix exception on file.save("original") Regression in commit 9232cdd57e93f140b2d7431905baff40e05488bc, which renamed _data_flags to dataflags. --- UnityPy/files/BundleFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityPy/files/BundleFile.py b/UnityPy/files/BundleFile.py index 54856b69..7a31da6f 100644 --- a/UnityPy/files/BundleFile.py +++ b/UnityPy/files/BundleFile.py @@ -223,7 +223,7 @@ def save(self, packer=None): elif packer == "original": self.save_fs( writer, - data_flag=self._data_flags, + data_flag=self.dataflags, block_info_flag=self._block_info_flags, ) elif packer == "lz4":