From 65db7bd0488c0a56c53446e87b14bf0cd95a8d9c Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Fri, 1 May 2020 17:34:14 -0400 Subject: Fix iterating over LinearViewObjects --- python/lineardisassembly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/lineardisassembly.py b/python/lineardisassembly.py index 4435acdc..3e49f5ee 100644 --- a/python/lineardisassembly.py +++ b/python/lineardisassembly.py @@ -137,7 +137,7 @@ class LinearViewObject(object): @property def previous(self): - if parent is None: + if self._parent is None: return None result = core.BNGetPreviousLinearViewObjectChild(self._parent.handle, self.handle) if not result: @@ -146,7 +146,7 @@ class LinearViewObject(object): @property def next(self): - if parent is None: + if self._parent is None: return None result = core.BNGetNextLinearViewObjectChild(self._parent.handle, self.handle) if not result: -- cgit v1.3.1