summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-03-02 02:07:37 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-03-02 02:07:37 +0100
commit08cadc3d871f681ef1f951894345359a85ba190e (patch)
tree946aea1cea7135075d5f2768f9418a6019ee8343
parent334b6c68d35e001ce5e8eb8c1bfde7d446fd241c (diff)
NativeScript: Fix initialization in wrong scope
Regression from d702d7b335c0c9305e75131770c0ea739b70d813 which broke javascript build.
-rw-r--r--modules/gdnative/nativescript/nativescript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp
index 3083ae7bbd..5806ee3f3f 100644
--- a/modules/gdnative/nativescript/nativescript.cpp
+++ b/modules/gdnative/nativescript/nativescript.cpp
@@ -957,8 +957,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
}