Add move_script check before executing logic

This commit is contained in:
Adam Scott 2022-11-20 15:21:57 -05:00
parent 98da707df5
commit 98ceb7ecf5
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;
}