Bläddra i källkod

Merge branch 'algorithm'

Leon Palluch 4 år sedan
förälder
incheckning
231901e716
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/pathgame/algorithm/DijkstraMagic.java

+ 1 - 1
src/pathgame/algorithm/DijkstraMagic.java

@@ -161,7 +161,7 @@ public class DijkstraMagic {
                 weightMap[posX][posY].setPrevOfPath(dir);
             }
             else {
-                weightMap[posX][posY].setPrevBoatPath(0);
+                weightMap[posX][posY].setPrevBoatPath(extraInd);
             }
         }