mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Fix autoloads iteration
Removes the range iterator usage in the autoloads map since `OrderedHashMap` does not implement range iterators.
This commit is contained in:
parent
5f69218edc
commit
2962a440ea
@ -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