From d702d7b335c0c9305e75131770c0ea739b70d813 Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Wed, 28 Feb 2018 21:55:13 +0100 Subject: Fix various valgrind reported uninitialized variable uses --- modules/gdnative/nativescript/nativescript.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdnative/nativescript/nativescript.cpp') diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index f2e9bef46..3083ae7bb 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -957,6 +957,7 @@ void NativeScriptLanguage::_unload_stuff(bool p_reload) { NativeScriptLanguage::NativeScriptLanguage() { NativeScriptLanguage::singleton = this; + has_objects_to_register = false; #ifndef NO_THREADS mutex = Mutex::create(); #endif -- cgit v1.2.3-70-g09d2