Fix EditorScriptCodeCompletionCache::Cache::time_loaded may be used uninitialized error.

This commit is contained in:
Relintai 2022-03-18 18:53:24 +01:00
parent f8e54698e4
commit c545717186

View File

@ -75,6 +75,10 @@ class EditorScriptCodeCompletionCache : public ScriptCodeCompletionCache {
struct Cache {
uint64_t time_loaded;
RES cache;
Cache() {
time_loaded = 0;
}
};
Map<String, Cache> cached;