onix-chess
Advanced tools
Comparing version 6.6.1 to 6.6.2
@@ -486,4 +486,8 @@ "use strict"; | ||
this.currentMove = this.moveList[key]; | ||
this.currentPos = new Position_1.Position(this.currentMove.fen); | ||
this.currentMove = this.currentMove.Next; | ||
if (!this.currentMove.isBegin()) { | ||
this.currentPos = new Position_1.Position(this.currentMove.Prev.fen); | ||
} | ||
else { | ||
this.currentPos.copyFrom(this.startPos); | ||
} | ||
} | ||
@@ -490,0 +494,0 @@ this.supressEvents = false; |
{ | ||
"name": "onix-chess", | ||
"version": "6.6.1", | ||
"version": "6.6.2", | ||
"description": "Onix chess library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -575,4 +575,7 @@ import toSafeInteger from 'lodash-es/toSafeInteger'; | ||
this.currentMove = this.moveList[key]; | ||
this.currentPos = new Position(this.currentMove.fen); | ||
this.currentMove = this.currentMove.Next!; | ||
if (!this.currentMove.isBegin()) { | ||
this.currentPos = new Position(this.currentMove.Prev.fen); | ||
} else { | ||
this.currentPos.copyFrom(this.startPos); | ||
} | ||
} | ||
@@ -579,0 +582,0 @@ |
Sorry, the diff of this file is not supported yet
487653
9306