Fix dumping of signal API parameters

(cherry picked from commit 188132884d)
This commit is contained in:
William Edwards 2023-09-12 18:43:31 -07:00 committed by Yuri Sizov
parent f6f2b0897a
commit 9332a2b387
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode
api["name"] = m.signal->identifier->name;
Array pars;
for (int j = 0; j < m.signal->parameters.size(); j++) {
pars.append(String(m.signal->parameters[i]->identifier->name));
pars.append(String(m.signal->parameters[j]->identifier->name));
}
api["arguments"] = pars;
if (const lsp::DocumentSymbol *symbol = get_symbol_defined_at_line(LINE_NUMBER_TO_INDEX(m.signal->start_line))) {