Skip to content

Commit 0f20e3a

Browse files
committed
Corrected mis-constructed null move test
1 parent 9ddc959 commit 0f20e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/boardui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function RedrawBoard() {
302302
g_selectedPiece.style.left = 0;
303303
g_selectedPiece.style.top = 0;
304304

305-
if (startX != endX && startY != endY && move != null) {
305+
if (!(startX == endX && startY == endY) && move != null) {
306306
UpdatePgnTextBox(move);
307307

308308
g_lastMove = move;

0 commit comments

Comments
 (0)