From 675899a521422a97835660b5a7b09dad851884d0 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 (cherry picked from commit d702d7b335c0c9305e75131770c0ea739b70d813) --- 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 aaa7d634d..b5274732a 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -853,6 +853,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