浏览代码

Merge branch 'algorithm'

Leon Palluch 4 年之前
父节点
当前提交
231901e716
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
             }
         }