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