Permalink
Browse files

Correct panic to refer to String'd piece.

  • Loading branch information...
1 parent ba7058b commit 21f42eb7f4ea67f2d1a232d532cbfedae4d9d7be @lorenzo-stoakes committed Jul 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 game.c
View
2 game.c
@@ -284,7 +284,7 @@ DoMove(Game *game, Move *move)
panic("No piece at %s when attempting en passant.", StringPosition(enPassant));
} else {
if(piece != Pawn) {
- panic("Piece taken via en passant is %s, not pawn.", piece);
+ panic("Piece taken via en passant is %s, not pawn.", StringPiece(piece));
}
ChessSetRemovePiece(&game->ChessSet, opposite, piece, enPassant);
AppendPiece(&game->History.CapturedPieces, piece);

0 comments on commit 21f42eb

Please sign in to comment.