From 29575ee4390d71e828767291d7329c1b5d04057b Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 3 Mar 2021 17:36:48 -0500 Subject: [PATCH] use self->members in displayio_group_set() --- shared-module/displayio/Group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-module/displayio/Group.c b/shared-module/displayio/Group.c index 42efeb18c2..a36acc1c39 100644 --- a/shared-module/displayio/Group.c +++ b/shared-module/displayio/Group.c @@ -340,7 +340,7 @@ mp_obj_t common_hal_displayio_group_get(displayio_group_t* self, size_t index) { void common_hal_displayio_group_set(displayio_group_t* self, size_t index, mp_obj_t layer) { _add_layer(self, layer); _remove_layer(self, index); - mp_obj_list_store(self, MP_OBJ_NEW_SMALL_INT(index), layer); + mp_obj_list_store(self->members, MP_OBJ_NEW_SMALL_INT(index), layer); } void displayio_group_construct(displayio_group_t* self, mp_obj_list_t* members, uint32_t scale, mp_int_t x, mp_int_t y) {