var -> let

This commit is contained in:
MaxRobinsonTheGreat
2021-12-17 19:01:06 -06:00
parent 957385d9bf
commit 002d04958d
2 changed files with 10 additions and 11 deletions

View File

@@ -104,7 +104,7 @@ class WorldEnvironment extends Environment{
clearWalls() {
for(var wall of this.walls){
var wcell = this.grid_map.cellAt(wall.col, wall.row);
let wcell = this.grid_map.cellAt(wall.col, wall.row);
if (wcell && wcell.state == CellStates.wall)
this.changeCell(wall.col, wall.row, CellStates.empty, null);
}