From d7366d59298df95f63eb1f775f5e728e48fa53a5 Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Mon, 17 Mar 2025 17:09:36 +0100 Subject: [PATCH] Add clearing of `static_gdscript_cache` to `GDScriptCache` (cherry picked from commit db5e843e468b7a69aeaebdf1e4159d2741b660fd) --- modules/gdscript/gdscript_cache.cpp | 1 + 1 file changed, 1 insertion(+) 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() {