aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/nativescript/nativescript.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2018-03-02 02:07:37 +0100
committerRémi Verschelde2018-03-02 02:08:50 +0100
commit87476c057a60f3ab6fc16ee1824d6b98990016a0 (patch)
treedccb166b77af3be8fc14303326769b2e4a8081f3 /modules/gdnative/nativescript/nativescript.cpp
parent53693e393d763a264f0577590c67cd5e6c5a3115 (diff)
downloadgodot-87476c057a60f3ab6fc16ee1824d6b98990016a0.tar.gz
godot-87476c057a60f3ab6fc16ee1824d6b98990016a0.tar.zst
godot-87476c057a60f3ab6fc16ee1824d6b98990016a0.zip
NativeScript: Fix initialization in wrong scope
Regression from d702d7b335c0c9305e75131770c0ea739b70d813 which broke javascript build. (cherry picked from commit 08cadc3d871f681ef1f951894345359a85ba190e)
Diffstat (limited to '')
-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 b5274732a..43b5b0002 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
}