NativeScript: Fix initialization in wrong scope

Regression from d702d7b335 which broke javascript build.
This commit is contained in:
Rémi Verschelde 2018-03-02 02:07:37 +01:00
parent 334b6c68d3
commit 08cadc3d87
1 changed files with 1 additions and 1 deletions

View File

@ -957,8 +957,8 @@ void NativeScriptLanguage::_unload_stuff(bool p_reload) {
NativeScriptLanguage::NativeScriptLanguage() { NativeScriptLanguage::NativeScriptLanguage() {
NativeScriptLanguage::singleton = this; NativeScriptLanguage::singleton = this;
has_objects_to_register = false;
#ifndef NO_THREADS #ifndef NO_THREADS
has_objects_to_register = false;
mutex = Mutex::create(); mutex = Mutex::create();
#endif #endif
} }