diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index 90af67ccd60..5b0b474b99e 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -485,6 +485,7 @@ void GDScriptCache::clear() { parser_map_refs.clear(); singleton->shallow_gdscript_cache.clear(); singleton->full_gdscript_cache.clear(); + singleton->static_gdscript_cache.clear(); } GDScriptCache::GDScriptCache() {