Skip to content

Commit 2699a02

Browse files
committed
use validated ply after round.userJump - closes lichess-org#13087
1 parent b5e870a commit 2699a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/round/src/ctrl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default class RoundController {
249249
userJump = (ply: Ply): void => {
250250
this.cancelMove();
251251
this.chessground.selectSquare(null);
252-
if (ply != this.ply && this.jump(ply)) lichess.sound.saySan(this.stepAt(ply).san, true);
252+
if (ply != this.ply && this.jump(ply)) lichess.sound.saySan(this.stepAt(this.ply).san, true);
253253
else this.redraw();
254254
};
255255

0 commit comments

Comments
 (0)