From c545717186f65b751ea6266ae6c59421ba1f80db Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 18 Mar 2022 18:53:24 +0100 Subject: [PATCH] Fix EditorScriptCodeCompletionCache::Cache::time_loaded may be used uninitialized error. --- editor/plugins/script_editor_plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 664028894..fc1186201 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -75,6 +75,10 @@ class EditorScriptCodeCompletionCache : public ScriptCodeCompletionCache { struct Cache { uint64_t time_loaded; RES cache; + + Cache() { + time_loaded = 0; + } }; Map cached;