Skip to content

Commit

Permalink
LSP: Fix iterator in enum API dump
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Dec 9, 2020
1 parent 8936c40 commit cf62289
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf62289

Please sign in to comment.