Rename remove() to remove_at() when removing by index
This commit is contained in:
parent
5efe80f308
commit
e078f970db
134 changed files with 323 additions and 323 deletions
|
|
@ -344,7 +344,7 @@ bool AStar::_solve(Point *begin_point, Point *end_point) {
|
|||
}
|
||||
|
||||
sorter.pop_heap(0, open_list.size(), open_list.ptrw()); // Remove the current point from the open list
|
||||
open_list.remove(open_list.size() - 1);
|
||||
open_list.remove_at(open_list.size() - 1);
|
||||
p->closed_pass = pass; // Mark the point as closed
|
||||
|
||||
for (OAHashMap<int, Point *>::Iterator it = p->neighbours.iter(); it.valid; it = p->neighbours.next_iter(it)) {
|
||||
|
|
@ -812,7 +812,7 @@ bool AStar2D::_solve(AStar::Point *begin_point, AStar::Point *end_point) {
|
|||
}
|
||||
|
||||
sorter.pop_heap(0, open_list.size(), open_list.ptrw()); // Remove the current point from the open list
|
||||
open_list.remove(open_list.size() - 1);
|
||||
open_list.remove_at(open_list.size() - 1);
|
||||
p->closed_pass = astar.pass; // Mark the point as closed
|
||||
|
||||
for (OAHashMap<int, AStar::Point *>::Iterator it = p->neighbours.iter(); it.valid; it = p->neighbours.next_iter(it)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue