Use range iterators for Map
This commit is contained in:
parent
e4dfa69bcf
commit
c63b18507d
154 changed files with 1897 additions and 1897 deletions
|
|
@ -367,10 +367,10 @@ Ref<Mesh> NavigationMesh::get_debug_mesh() {
|
|||
}
|
||||
List<Vector3> lines;
|
||||
|
||||
for (Map<_EdgeKey, bool>::Element *E = edge_map.front(); E; E = E->next()) {
|
||||
if (E->get()) {
|
||||
lines.push_back(E->key().from);
|
||||
lines.push_back(E->key().to);
|
||||
for (const KeyValue<_EdgeKey, bool> &E : edge_map) {
|
||||
if (E.value) {
|
||||
lines.push_back(E.key.from);
|
||||
lines.push_back(E.key.to);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue