summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-10-04 20:46:35 -0300
committerGeorge Marques <george@gmarqu.es>2021-10-04 20:48:39 -0300
commit7725ebf3d2e7a988ce24aded5e081b0afac76fe5 (patch)
treec2a6c213137e5eed3c1e64db6d5b5e209c259903 /core
parent2e8cba0bd9aba40d559368c7cfd01305000a5d00 (diff)
GDScript: Use path cache when checking preloaded scripts
The path itself might not always be set in some cases, especially when the script is just created and is already in the resource cache. Using get_path() in this case gets the correct resource path. This also adds a null check for safety in case the path is incorrect or missing, to avoid a crash in the engine.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions