summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2021-09-13 02:55:24 +0200
committerGitHub <noreply@github.com>2021-09-13 02:55:24 +0200
commitcc0ab8fb2db4223763c1bd01b0816bbcb2bb7b96 (patch)
tree1a92c876ae0dac61dc79cd40d7ad26f7a64978ad /modules
parentfbd326b1f37f15acaca5781067fa9fe1e5c46136 (diff)
parent2962a440eae2c76438eb1224a7625b092ea7cbef (diff)
Merge pull request #52598 from raulsntos/fix-52268
Fix autoloads iteration in `code_completion.cpp`
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/editor/code_completion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/editor/code_completion.cpp b/modules/mono/editor/code_completion.cpp
index d911f6461c..7433c865f5 100644
--- a/modules/mono/editor/code_completion.cpp
+++ b/modules/mono/editor/code_completion.cpp
@@ -123,8 +123,8 @@ PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_scr
// AutoLoads
OrderedHashMap<StringName, ProjectSettings::AutoloadInfo> autoloads = ProjectSettings::get_singleton()->get_autoload_list();
- for (const KeyValue<StringName, ProjectSettings::AutoloadInfo> &E : autoloads) {
- const ProjectSettings::AutoloadInfo &info = E.value;
+ for (OrderedHashMap<StringName, ProjectSettings::AutoloadInfo>::Element E = autoloads.front(); E; E = E.next()) {
+ const ProjectSettings::AutoloadInfo &info = E.value();
suggestions.push_back(quoted("/root/" + String(info.name)));
}
}