Skip to content

Commit

Permalink
minor clean up (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrlowe committed Jun 21, 2020
1 parent d33cd16 commit d4671d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Maze.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ class Maze {
reset() {
//random seed would go here

this.currentCell = {
x: this.startGenerationFrom.x,
y: this.startGenerationFrom.y,
};
this.currentCell = {...this.startGenerationFrom};

this.finishedGenerating = false;

Expand Down

0 comments on commit d4671d6

Please sign in to comment.