projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix capture-in-check bug for Capture and Losers variants
[vchess.git]
/
client
/
src
/
variants
/
Arena.js
diff --git
a/client/src/variants/Arena.js
b/client/src/variants/Arena.js
index
7cfda1d
..
62d2802
100644
(file)
--- a/
client/src/variants/Arena.js
+++ b/
client/src/variants/Arena.js
@@
-25,7
+25,7
@@
export class ArenaRules extends ChessRules {
if (['K','k','Q','q'].includes(row[i])) royals[row[i]]++;
if (V.PIECES.includes(row[i].toLowerCase())) sumElts++;
else {
- const num = parseInt(row[i]);
+ const num = parseInt(row[i]
, 10
);
if (isNaN(num)) return false;
sumElts += num;
}