1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Fix thread_process_array when NO_THREADS.

(cherry picked from commit dfbeb5ae29)
This commit is contained in:
Fabio Alessandrelli
2021-02-26 12:09:55 +01:00
committed by Rémi Verschelde
parent e3664e971b
commit 9084e2e85b

View File

@@ -97,7 +97,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);