Correctly set GDScript internal path for shallow scripts

This commit is contained in:
HolonProduction committed 2025-12-04 20:44:00 +01:00
1 parent 78d91947f6
commit 2ce3be221a
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ thread_local SafeBinaryMutex<GDScriptCache::BINARY_MUTEX_TAG>::TLSData SafeBinar
SafeBinaryMutex<GDScriptCache::BINARY_MUTEX_TAG> GDScriptCache::mutex;
void GDScriptCache::move_script(const String &p_from, const String &p_to) {
if (singleton == nullptr || p_from == p_to) {
if (singleton == nullptr || p_from == p_to || p_from.is_empty()) {
return;
}