Nicolas Winkler 7 年之前
父節點
當前提交
5ebcea413f
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/BitBoard.h

+ 3 - 4
src/BitBoard.h

@@ -118,10 +118,9 @@ struct chessy::Move
         origin{ origin }, destination{ destination }, promotion{ promotion },
         isCastling{ false } {}
 
-    inline Move(Index origin, Index destination, PieceType promotion,
-        bool isCastling) :
-        origin{ origin }, destination{ destination }, promotion{ promotion },
-        isCastling{ isCastling } {}
+    inline Move(Index origin, Index destination, bool isCastling) :
+        origin{ origin }, destination{ destination },
+        promotion{ PieceType::PAWN }, isCastling{ isCastling } {}
 
     inline std::string asString(void) const
     {