You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -2169,8 +2169,8 @@ bool Main::start() {
|
||||
}
|
||||
}
|
||||
|
||||
for (List<Node *>::Element *E = to_add.front(); E; E = E->next()) {
|
||||
sml->get_root()->add_child(E->get());
|
||||
for (Node *E : to_add) {
|
||||
sml->get_root()->add_child(E);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user