From ccf2a0afd2de144d3f88a8efc38d0ab4af76a6d9 Mon Sep 17 00:00:00 2001 From: Charles Ferguson Date: Wed, 15 Nov 2023 08:43:26 +0000 Subject: [PATCH] Fix for the initialisation of untemplated object. (#42) Untemplated objects can be managed through the Toolbox library, but their construction when referenced would error because the `template` argument wasn't passed. It is now passed as None. --- riscos_toolbox/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscos_toolbox/base.py b/riscos_toolbox/base.py index c9b80ab..74caedf 100644 --- a/riscos_toolbox/base.py +++ b/riscos_toolbox/base.py @@ -89,7 +89,7 @@ def parent(self): if id in _objects: obj = _objects[id] else: - obj = Object(id) + obj = Object(id, None) if comp_id == 0xffffffff: comp = None else: