From f6968d5f1737fef3bf4d7d9cdd3a71f00625bd09 Mon Sep 17 00:00:00 2001 From: Francois Belair Date: Tue, 28 Jan 2020 14:19:09 -0500 Subject: [PATCH] Fix static functions loop using class' functions Besides being incorrect, it also caused a hard editor crash for purely static classes or classes with more static functions than methods. --- modules/gdscript/language_server/gdscript_extend_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/language_server/gdscript_extend_parser.cpp b/modules/gdscript/language_server/gdscript_extend_parser.cpp index 701809e7550..0f6f13944bd 100644 --- a/modules/gdscript/language_server/gdscript_extend_parser.cpp +++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp @@ -757,7 +757,7 @@ Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode Array static_functions; for (int i = 0; i < p_class->static_functions.size(); ++i) { - static_functions.append(dump_function_api(p_class->functions[i])); + static_functions.append(dump_function_api(p_class->static_functions[i])); } class_api["static_functions"] = static_functions;