GDScript: invalidate GDScriptParserRef when reloading
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user