this is so sad

This commit is contained in:
Leijurv
2018-08-14 10:50:41 -07:00
parent 60d246ecc9
commit 2e7f5048dc
3 changed files with 5 additions and 12 deletions

View File

@@ -121,7 +121,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
@Override
public Optional<IPath> pathToMostRecentNodeConsidered() {
return Optional.ofNullable(mostRecentConsidered).map(node -> new Path(startNode, node, goal, 0));
return Optional.ofNullable(mostRecentConsidered).map(node -> new Path(startNode, node, 0));
}
@Override
@@ -129,7 +129,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
if (startNode == null || bestSoFar[0] == null)
return Optional.empty();
return Optional.of(new Path(startNode, bestSoFar[0], goal, 0));
return Optional.of(new Path(startNode, bestSoFar[0], 0));
}
@Override