You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use range iterators for Map
This commit is contained in:
@@ -425,8 +425,8 @@ void ScriptCreateDialog::_lang_changed(int l) {
|
||||
templates[i].id = new_id;
|
||||
}
|
||||
// Disable overridden
|
||||
for (Map<String, Vector<int>>::Element *E = template_overrides.front(); E; E = E->next()) {
|
||||
const Vector<int> &overrides = E->get();
|
||||
for (const KeyValue<String, Vector<int>> &E : template_overrides) {
|
||||
const Vector<int> &overrides = E.value;
|
||||
|
||||
if (overrides.size() == 1) {
|
||||
continue; // doesn't override anything
|
||||
|
||||
Reference in New Issue
Block a user