Nicolas Winkler il y a 7 ans
Parent
commit
5ebcea413f
1 fichiers modifiés avec 3 ajouts et 4 suppressions
  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
     {