From d4671d69968ee26d08709d52a1d38e007f56c193 Mon Sep 17 00:00:00 2001 From: The Wizard Bear <42446683+TheWizardBear@users.noreply.github.com> Date: Sun, 21 Jun 2020 15:12:55 +0100 Subject: [PATCH] minor clean up (?) --- Maze.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Maze.js b/Maze.js index b0ac2df..da966eb 100644 --- a/Maze.js +++ b/Maze.js @@ -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;