aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/moves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/moves.cpp b/src/moves.cpp
index 17d6814..8f21140 100644
--- a/src/moves.cpp
+++ b/src/moves.cpp
@@ -93,7 +93,7 @@ void GeneratePawnMoves(Game *b, int from, std::vector<Move> &moves,
int target = targetRank * 8 + targetFile;
if (IndexToPosition(target) == b->enPassant && b->canEnpassant) {
- moves.push_back({positiopn, IndexToPosition(target)});
+ moves.push_back({position, IndexToPosition(target)});
}
if (b->pieces[target].type != NONEPIECE &&