Explorar el Código

NativeScript: Fix initialization in wrong scope

Regression from d702d7b335c0c9305e75131770c0ea739b70d813 which broke javascript build.
Rémi Verschelde hace 7 años
padre
commit
08cadc3d87
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules/gdnative/nativescript/nativescript.cpp

+ 1 - 1
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
 }