diff --git a/Engine/BfsPathFinder.py b/Engine/BfsPathFinder.py index 7d59c5fb..0d12a6e9 100644 --- a/Engine/BfsPathFinder.py +++ b/Engine/BfsPathFinder.py @@ -49,6 +49,8 @@ class BfsPathFinder: path.append(self.goal.getAction()) path.append(current.getAction()) while current.state != startState: + point = current.state.getPoint() + current.action = self.setAction(current, point) path.append(current.getAction()) current = cameFrom[current] path.reverse() diff --git a/Engine/__pycache__/BfsPathFinder.cpython-39.pyc b/Engine/__pycache__/BfsPathFinder.cpython-39.pyc index aa17054a..ffbf689e 100644 Binary files a/Engine/__pycache__/BfsPathFinder.cpython-39.pyc and b/Engine/__pycache__/BfsPathFinder.cpython-39.pyc differ