You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Add move_script check before executing logic
This commit is contained in:
@@ -122,7 +122,7 @@ GDScriptParserRef::~GDScriptParserRef() {
|
|||||||
GDScriptCache *GDScriptCache::singleton = nullptr;
|
GDScriptCache *GDScriptCache::singleton = nullptr;
|
||||||
|
|
||||||
void GDScriptCache::move_script(const String &p_from, const String &p_to) {
|
void GDScriptCache::move_script(const String &p_from, const String &p_to) {
|
||||||
if (singleton == nullptr) {
|
if (singleton == nullptr || p_from == p_to) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user