summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_lambda_callable.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-11-12 12:14:42 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-11-12 12:14:42 +0100
commitbc807766182ee52902464faa4cbf34756b0c868b (patch)
tree0d9d7ef5750c2d2ef2a52cec0896491a46721e4b /modules/gdscript/gdscript_lambda_callable.h
parent10e820a783e4e8d379e8f55a54c1dc0bc3c5a203 (diff)
parent271511726b02848783904429c8dde857f6266429 (diff)
downloadredot-engine-bc807766182ee52902464faa4cbf34756b0c868b.tar.gz
Merge pull request #84659 from RandomShaper/fix_lambda_cross_thread
Fix lambda cross-thread dynamics
Diffstat (limited to 'modules/gdscript/gdscript_lambda_callable.h')
-rw-r--r--modules/gdscript/gdscript_lambda_callable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_lambda_callable.h b/modules/gdscript/gdscript_lambda_callable.h
index ee7d547544..d961f18852 100644
--- a/modules/gdscript/gdscript_lambda_callable.h
+++ b/modules/gdscript/gdscript_lambda_callable.h
@@ -45,7 +45,7 @@ class GDScriptLambdaCallable : public CallableCustom {
GDScriptFunction *function = nullptr;
Ref<GDScript> script;
uint32_t h;
- GDScript::UpdatableFuncPtrElement updatable_func_ptr_element;
+ GDScript::UpdatableFuncPtrElement *updatable_func_ptr_element = nullptr;
Vector<Variant> captures;
@@ -72,7 +72,7 @@ class GDScriptLambdaSelfCallable : public CallableCustom {
Ref<RefCounted> reference; // For objects that are RefCounted, keep a reference.
Object *object = nullptr; // For non RefCounted objects, use a direct pointer.
uint32_t h;
- GDScript::UpdatableFuncPtrElement updatable_func_ptr_element;
+ GDScript::UpdatableFuncPtrElement *updatable_func_ptr_element = nullptr;
Vector<Variant> captures;