projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Another typo...
[vchess.git]
/
client
/
src
/
variants
/
Swap.js
diff --git
a/client/src/variants/Swap.js
b/client/src/variants/Swap.js
index
071b21d
..
4d97ae9
100644
(file)
--- a/
client/src/variants/Swap.js
+++ b/
client/src/variants/Swap.js
@@
-34,7
+34,7
@@
export class SwapRules extends ChessRules {
}
getPPpath(m) {
- if (m.
vanish
.length == 1) return super.getPPpath(m);
+ if (m.
appear
.length == 1) return super.getPPpath(m);
// Swap promotion:
return m.appear[1].c + m.appear[1].p;
}