浏览代码

Fix missing GDScriptParser reference on completion context

Aina 1 年之前
父节点
当前提交
930742f8b3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/gdscript/gdscript_parser.cpp

+ 1 - 0
modules/gdscript/gdscript_parser.cpp

@@ -260,6 +260,7 @@ void GDScriptParser::override_completion_context(const Node *p_for_node, Complet
 	context.current_line = tokenizer->get_cursor_line();
 	context.current_argument = p_argument;
 	context.node = p_node;
+	context.parser = this;
 	completion_context = context;
 }