From 80b733a33a56067eb7a067f0f1ce30b6c38275f8 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 10 Jan 2017 19:02:52 -0300 Subject: uses the global thread to protect the instacnes map in GDScript, closes #4615 --- modules/gdscript/gd_script.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/gdscript/gd_script.h') diff --git a/modules/gdscript/gd_script.h b/modules/gdscript/gd_script.h index 7e572589c..dec191c01 100644 --- a/modules/gdscript/gd_script.h +++ b/modules/gdscript/gd_script.h @@ -294,11 +294,13 @@ class GDScriptLanguage : public ScriptLanguage { void _add_global(const StringName& p_name,const Variant& p_value); +friend class GDInstance; Mutex *lock; + friend class GDScript; SelfList::List script_list; -- cgit v1.2.3-70-g09d2