Skip to content

Commit

Permalink
fix #170: bugfix in managing repeated elements in the OPEN list of A*
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezsieira committed May 16, 2016
1 parent 303b8b7 commit 4313cab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected N takePromising() {
*/
public N next() {
// Get and remove the best node in the queue
N current = queue.poll();
N current = takePromising();
S currentState = current.state();
// Remove from open as well
open.remove(currentState);
Expand Down

0 comments on commit 4313cab

Please sign in to comment.