mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Rename remove() to remove_at() when removing by index
This commit is contained in:
committed by
Aaron Record
parent
5efe80f308
commit
e078f970db
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user