Skip to content

Commit 2a64453

Browse files
committed
Add null check to TileMapGaeaRenderer clearing
1 parent 9786c40 commit 2a64453

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addons/gaea/nodes/renderers/tilemap_renderer.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ func _on_area_erased(area: AABB) -> void:
4141

4242
func _reset() -> void:
4343
for tile_map_layer in tile_map_layers:
44+
if not is_instance_valid(tile_map_layer):
45+
continue
4446
tile_map_layer.clear()

0 commit comments

Comments
 (0)