diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-12-09 13:34:29 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-12-09 13:34:29 +0100 |
commit | cf62289d24ff4a71513e55940011864e929e7bf8 (patch) | |
tree | 7ec6170b899e275ac23fe0a7127bc7be3dbab698 /modules/gdscript/language_server | |
parent | 8936c4057b9e2859787c396d44f1fa2b7427390a (diff) |
LSP: Fix iterator in enum API dump
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r-- | modules/gdscript/language_server/gdscript_extend_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/gdscript_extend_parser.cpp b/modules/gdscript/language_server/gdscript_extend_parser.cpp index 7f2c8043cf..bd2d170e52 100644 --- a/modules/gdscript/language_server/gdscript_extend_parser.cpp +++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp @@ -724,7 +724,7 @@ Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode case ClassNode::Member::ENUM: { Dictionary enum_dict; for (int j = 0; j < m.m_enum->values.size(); j++) { - enum_dict[m.m_enum->values[i].identifier->name] = m.m_enum->values[i].value; + enum_dict[m.m_enum->values[j].identifier->name] = m.m_enum->values[j].value; } Dictionary api; |