GDScript: invalidate GDScriptParserRef when reloading

This commit is contained in:
rune-scape committed 2024-04-18 14:05:58 -07:00
1 parent 029aadef56
commit 6b88c86cec
8 files changed
+139 -106

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@ bool GDScriptLanguage::validate(const String &p_script, const String &p_path, Li
r_errors->push_back(e);
}
for (KeyValue<String, Ref<GDScriptParserRef>> E : analyzer.get_depended_parsers()) {
for (KeyValue<String, Ref<GDScriptParserRef>> E : parser.get_depended_parsers()) {
GDScriptParser *depended_parser = E.value->get_parser();
for (const GDScriptParser::ParserError &pe : depended_parser->get_errors()) {
ScriptLanguage::ScriptError e;