summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2020-12-08 20:58:49 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-12-09 10:17:53 +0200
commit644f73966002589c36d779fa33b9524a451f56e0 (patch)
tree58b5f8b90e48771dd211a39a8aeba231d6483475 /modules/gdscript/language_server
parent90bdba576af2d5f0a8ecdbef065d6ef0075bc2f2 (diff)
Static analyzer fixes:
Removes unused code in OS. Fixes return types. Fixes few typos.
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r--modules/gdscript/language_server/gdscript_extend_parser.cpp2
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 668dfd4835..7f2c8043cf 100644
--- a/modules/gdscript/language_server/gdscript_extend_parser.cpp
+++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp
@@ -723,7 +723,7 @@ Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode
} break;
case ClassNode::Member::ENUM: {
Dictionary enum_dict;
- for (int j = 0; j < m.m_enum->values.size(); i++) {
+ 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;
}