Skip to content

Commit

Permalink
close issue #48
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincoln-Ab committed Nov 19, 2024
1 parent ec829ad commit 3c61540
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/scene_2d/level_builder.gd
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ func _reset_builder_grid():
cell.clear_cell()
for slider in _slider_collection.values():
slider.clear_slider()
var old_width := _level_data.width
var old_height := _level_data.height
_level_data = LevelData.new()
_level_data.width = old_width
_level_data.height = old_height


func _on_width_change(new_width: int) -> void:
Expand Down

0 comments on commit 3c61540

Please sign in to comment.