Merge pull request #68929 from adamscott/add-rename-check

Add `GDScriptCache::move_script` check before executing logic
This commit is contained in:
Rémi Verschelde 2022-11-20 23:25:30 +01:00
commit 190226098b
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}