fixes bug when no state has be save yet
parent
ff893396fe
commit
232a4e9936
|
|
@ -133,7 +133,7 @@ public class Game {
|
|||
}
|
||||
|
||||
/**
|
||||
* Copys the current move list to the savestate
|
||||
* Copies the current move list to the savestate
|
||||
*/
|
||||
public void quicksave() {
|
||||
// TODO: save the current clocktime
|
||||
|
|
@ -148,6 +148,8 @@ public class Game {
|
|||
* from the savestate
|
||||
*/
|
||||
public void quickload() {
|
||||
if (this.savestate != null) {
|
||||
|
||||
this.board = new Board();
|
||||
this.board.loadFromFen(startPosFen);
|
||||
|
||||
|
|
@ -157,6 +159,7 @@ public class Game {
|
|||
|
||||
logger.info("Quickloaded");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Plays the move on the board and adds it to the movelist
|
||||
|
|
|
|||
Loading…
Reference in New Issue