Fix type handling of turn slider.
This commit is contained in:
parent
61119368d1
commit
19a1ed36d7
@ -916,6 +916,7 @@ const INTERFACE = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
replay_jump(turn) {
|
replay_jump(turn) {
|
||||||
|
turn = +turn;
|
||||||
if(INTERFACE_DATA.mode == INTERFACE.Mode.Replay) {
|
if(INTERFACE_DATA.mode == INTERFACE.Mode.Replay) {
|
||||||
if(turn >= 0 && turn <= INTERFACE_DATA.history.length) {
|
if(turn >= 0 && turn <= INTERFACE_DATA.history.length) {
|
||||||
INTERFACE_DATA.replay_turn = turn;
|
INTERFACE_DATA.replay_turn = turn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user