summaryrefslogtreecommitdiff
path: root/src/ChessArbiter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChessArbiter.cpp')
-rw-r--r--src/ChessArbiter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp
index 2830bc1..593ece2 100644
--- a/src/ChessArbiter.cpp
+++ b/src/ChessArbiter.cpp
@@ -131,12 +131,12 @@ bool ChessArbiter::Play(const std::string &move, char promote) {
if(moved.piece == 'p' && dst[1]=='1'){
board.RemovePiece(dst);
board.AddPiece(tolower(promote),dst);
- SAN+="="+toupper(promote);
+ SAN+="=";SAN.push_back(toupper(promote));
was_pawn_promotion=true;
} else if(dst[1]=='8'){
board.RemovePiece(dst);
board.AddPiece(toupper(promote),dst);
- SAN+="="+toupper(promote);
+ SAN+="=";SAN.push_back(toupper(promote));
was_pawn_promotion=true;
}
}