mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #52598 from raulsntos/fix-52268
Fix autoloads iteration in `code_completion.cpp`
This commit is contained in:
commit
cc0ab8fb2d
@ -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)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user