summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_cache.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-11-28 11:45:11 +0100
committerGitHub <noreply@github.com>2022-11-28 11:45:11 +0100
commit166066d9f74e574b68d9f9d0ba05bf42b8de2131 (patch)
tree7ccadae0c01ec2474c894cec8f4936e2804577af /modules/gdscript/gdscript_cache.cpp
parentceca46078358543a22dec85e9c9b525ddaf8110e (diff)
parent4e6068969527ae4f55adf24865d511727d1da3b4 (diff)
downloadredot-engine-166066d9f74e574b68d9f9d0ba05bf42b8de2131.tar.gz
Merge pull request #69259 from adamscott/fix-cyclic-reference-base-issue
Fix cyclic reference base being loaded but not valid (which is ok)
Diffstat (limited to 'modules/gdscript/gdscript_cache.cpp')
-rw-r--r--modules/gdscript/gdscript_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp
index 2e7263b652..5fbdf8c432 100644
--- a/modules/gdscript/gdscript_cache.cpp
+++ b/modules/gdscript/gdscript_cache.cpp
@@ -260,7 +260,7 @@ Ref<GDScript> GDScriptCache::get_full_script(const String &p_path, Error &r_erro
Ref<GDScript> script;
r_error = OK;
if (singleton->full_gdscript_cache.has(p_path)) {
- script = Ref<GDScript>(singleton->full_gdscript_cache[p_path]);
+ script = singleton->full_gdscript_cache[p_path];
if (!p_update_from_disk) {
return script;
}