Change the neighbours vector to a set in AStar

This fixes an issue where one could not disconnect two points that were connected more than once.
This commit is contained in:
Danny
2018-06-27 22:36:38 -07:00
parent 2365fe472b
commit 9b60bb2c7c
2 changed files with 12 additions and 14 deletions

View File

@@ -54,7 +54,7 @@ class AStar : public Reference {
real_t weight_scale;
uint64_t last_pass;
Vector<Point *> neighbours;
Set<Point *> neighbours;
// Used for pathfinding
Point *prev_point;