From ea06eafe483d37bb8823ad196ee013a9e1232186 Mon Sep 17 00:00:00 2001 From: Schamper <1254028+Schamper@users.noreply.github.com> Date: Sun, 29 Oct 2023 23:44:08 +0100 Subject: [PATCH] Remove updating of _values --- dissect/cstruct/types/structure.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dissect/cstruct/types/structure.py b/dissect/cstruct/types/structure.py index 50e3778..fc3afa9 100644 --- a/dissect/cstruct/types/structure.py +++ b/dissect/cstruct/types/structure.py @@ -537,8 +537,6 @@ def _proxy_structure(value: Structure) -> UnionProxy: nested_value = getattr(value, field.name) proxy = UnionProxy(self, field.name, nested_value) object.__setattr__(value, field.name, proxy) - if hasattr(value, "_values"): - value._values[field.name] = proxy _proxy_structure(nested_value) _proxy_structure(self)