From 98ceb7ecf5fcf6d2fb00d2037aeec0dc67460145 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Sun, 20 Nov 2022 15:21:57 -0500 Subject: [PATCH] Add move_script check before executing logic --- modules/gdscript/gdscript_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index 00ae5f43c50..2fafb13211a 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -122,7 +122,7 @@ GDScriptParserRef::~GDScriptParserRef() { GDScriptCache *GDScriptCache::singleton = nullptr; void GDScriptCache::move_script(const String &p_from, const String &p_to) { - if (singleton == nullptr) { + if (singleton == nullptr || p_from == p_to) { return; }