Skip to content

Commit

Permalink
GDScriptCache: Invalidate moved script
Browse files Browse the repository at this point in the history
  • Loading branch information
rune-scape committed Aug 9, 2024
1 parent 88f3b5f commit ebf9eaa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/gdscript/gdscript_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ void GDScriptCache::move_script(const String &p_from, const String &p_to) {
return;
}

if (singleton->parser_map.has(p_from) && !p_from.is_empty()) {
singleton->parser_map[p_to] = singleton->parser_map[p_from];
}
singleton->parser_map.erase(p_from);
remove_parser(p_from);

if (singleton->parser_inverse_dependencies.has(p_from) && !p_from.is_empty()) {
singleton->parser_inverse_dependencies[p_to] = singleton->parser_inverse_dependencies[p_from];
Expand Down

0 comments on commit ebf9eaa

Please sign in to comment.