1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Fix build failure on GCC

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski 2010-07-25 09:52:11 +03:00 committed by Marco Costalba
parent 02882dfe81
commit 4d438fae9e

View file

@ -60,7 +60,7 @@ struct PieceLetters : std::map<char, Piece> {
char from_piece(Piece p) const {
map<char, Piece>::const_iterator it;
std::map<char, Piece>::const_iterator it;
for (it = begin(); it != end(); ++it)
if (it->second == p)
return it->first;