summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
authorrune-scape <allie.smith.epic@gmail.com>2024-04-12 16:13:25 -0700
committerrune-scape <allie.smith.epic@gmail.com>2024-04-18 14:05:58 -0700
commit6b88c86cec1f38934730beca613ee29df5643f6a (patch)
tree654403c3ab21a0544f36a9a3fd3c6b03081113e2 /modules/gdscript/gdscript_editor.cpp
parent029aadef563fb69cf49aa9795b62f27171f8c3f4 (diff)
downloadredot-engine-6b88c86cec1f38934730beca613ee29df5643f6a.tar.gz
GDScript: invalidate GDScriptParserRef when reloading
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r--modules/gdscript/gdscript_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index eaef8a961c..74d383c57f 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/modules/gdscript/gdscript_editor.cpp
@@ -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;