summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server
diff options
context:
space:
mode:
authorFrancois Belair <razoric480@gmail.com>2020-01-28 14:19:09 -0500
committerFrancois Belair <razoric480@gmail.com>2020-01-28 14:19:09 -0500
commitf6968d5f1737fef3bf4d7d9cdd3a71f00625bd09 (patch)
tree9bb7522f011d423fe2394e3f49fda60e3dc4bd99 /modules/gdscript/language_server
parent1c3aff42dea3f9d9c49e6395dd4a9c848e65cbf6 (diff)
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.
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 701809e755..0f6f13944b 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;