From 8c1ec21009634290a177ed5a0f093d900a698454 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sat, 21 Mar 2020 11:51:57 +0100
Subject: [PATCH] Add comment on the 'en passant piece is a pawn'

---
 client/src/base_rules.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/src/base_rules.js b/client/src/base_rules.js
index f9574004..f51e8d01 100644
--- a/client/src/base_rules.js
+++ b/client/src/base_rules.js
@@ -679,6 +679,7 @@ export const ChessRules = class ChessRules {
       enpassantMove.vanish.push({
         x: x,
         y: epSquare.y,
+        // Captured piece is usually a pawn, but next line seems harmless
         p: this.getPiece(x, epSquare.y),
         c: this.getColor(x, epSquare.y)
       });
-- 
2.44.0