Skip to content

Commit

Permalink
Finally fix stupid reset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
blaumeise20 committed May 12, 2023
1 parent 89685f0 commit 7c2ec2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/grid/cellGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ export class CellGrid {
if (cell) grid.loadCell(Pos(x, y), cell.type, cell.direction);
}
}
for (const [pos, tile] of this.tiles.entries()) {
grid.tiles.set(pos, tile);
}
return grid;
}

Expand Down

0 comments on commit 7c2ec2d

Please sign in to comment.