From 87476c057a60f3ab6fc16ee1824d6b98990016a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 2 Mar 2018 02:07:37 +0100 Subject: [PATCH] NativeScript: Fix initialization in wrong scope Regression from d702d7b335c0c9305e75131770c0ea739b70d813 which broke javascript build. (cherry picked from commit 08cadc3d871f681ef1f951894345359a85ba190e) --- modules/gdnative/nativescript/nativescript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index b5274732adc..43b5b000284 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -853,8 +853,8 @@ void NativeScriptLanguage::_unload_stuff(bool p_reload) { NativeScriptLanguage::NativeScriptLanguage() { NativeScriptLanguage::singleton = this; - has_objects_to_register = false; #ifndef NO_THREADS + has_objects_to_register = false; mutex = Mutex::create(); #endif }