From dfbeb5ae29f932b21600eb8d3e941b32b0943b04 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 26 Feb 2021 12:09:55 +0100 Subject: [PATCH] Fix thread_process_array when NO_THREADS. --- core/os/threaded_array_processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/threaded_array_processor.h b/core/os/threaded_array_processor.h index 4f270001d3..fec6473589 100644 --- a/core/os/threaded_array_processor.h +++ b/core/os/threaded_array_processor.h @@ -95,7 +95,7 @@ void thread_process_array(uint32_t p_elements, C *p_instance, M p_method, U p_us data.method = p_method; data.instance = p_instance; data.userdata = p_userdata; - data.index = 0; + data.index.set(0); data.elements = p_elements; for (uint32_t i = 0; i < p_elements; i++) { data.process(i);