diff -r 9962f5d98764 -r bde99d803caf src/chess/pawn.c --- a/src/chess/pawn.c Thu Aug 06 14:45:55 2026 +0200 +++ b/src/chess/pawn.c Thu Aug 06 16:11:37 2026 +0200 @@ -78,7 +78,8 @@ } } -size_t pawn_moves(GameState *gamestate, Color c, Row r, File f, Move *moves) { +size_t pawn_moves(const GameState *gamestate, + Color c, Row r, File f, Move *moves) { size_t count = 0; int rowdelta = c == WHITE ? 1 : -1; int promotionrow = c == WHITE ? 7 : 0;