summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-26 14:34:58 +0100
committerGitHub <noreply@github.com>2021-02-26 14:34:58 +0100
commit4ddf5caa900b075d3a16fe0683e26714c220ff12 (patch)
tree78fc62fd0a49540e50edab8d12c671b0742372d9 /core
parentd7e6c20c82df9179bc4e9b7706dc7a09ee554974 (diff)
parentdfbeb5ae29f932b21600eb8d3e941b32b0943b04 (diff)
Merge pull request #46447 from Faless/fix/4.x_threaded_array
Fix ThreadedArrayProcessor init when NO_THREADS.
Diffstat (limited to 'core')
-rw-r--r--core/os/threaded_array_processor.h2
1 files changed, 1 insertions, 1 deletions
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);