diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp index 2b34ef6..1c04bed 100644 --- a/src/ChessArbiter.cpp +++ b/src/ChessArbiter.cpp @@ -3,7 +3,7 @@ namespace chessarbiter { ChessArbiter::ChessArbiter() : wPawn(1), wRook(5), wKnight(3), wBishop(3), wQueen(9), wKing(0), SAN(""), - capture(' '), capture_last(' ') {} + capture(' '){} void ChessArbiter::Setup(std::string fen) { positions.clear(); @@ -47,6 +47,7 @@ bool ChessArbiter::Play(std::string move) { FEN newFen = fen; INIT_BACKUP(); SAN = ""; + capture=' '; if (IsCapture) { capture = board.GetPieceAt(dst).piece; diff --git a/src/ChessArbiter.hpp b/src/ChessArbiter.hpp index 541253c..6d31073 100644 --- a/src/ChessArbiter.hpp +++ b/src/ChessArbiter.hpp @@ -30,7 +30,7 @@ class ChessArbiter { void SetFEN(std::string); void SetFEN(FEN); std::string SAN, SAN_last; - char capture, capture_last; + char capture; public: ChessArbiter();