From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sat, 22 Dec 2018 22:17:27 +0000 (+0100)
Subject: Fix mistake in Grand variant (same as in Crazyhouse before)
X-Git-Url: https://git.auder.net/variants/Chakart/pieces/img/doc/DESCRIPTION?a=commitdiff_plain;h=dc0d28e509798eede4f2ca969358400542cdfc7f;p=vchess.git

Fix mistake in Grand variant (same as in Crazyhouse before)
---

diff --git a/public/javascripts/variants/Grand.js b/public/javascripts/variants/Grand.js
index 12fbfdb2..4271a693 100644
--- a/public/javascripts/variants/Grand.js
+++ b/public/javascripts/variants/Grand.js
@@ -35,7 +35,7 @@ class GrandRules extends ChessRules
 	getCapturedFen()
 	{
 		let counts = _.map(_.range(10), 0);
-		for (let i=0; i<V.PIECES.length; i++)
+		for (let i=0; i<V.PIECES.length-1; i++) //-1: no king captured
 		{
 			counts[i] = this.captured["w"][V.PIECES[i]];
 			counts[5+i] = this.captured["b"][V.PIECES[i]];