Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit f0b0c1e4 authored by Insta-x's avatar Insta-x
Browse files

Fix: freed building error

parent 6153aef1
No related branches found
No related tags found
1 merge request!22Rakan/final
......@@ -49,9 +49,10 @@ func is_mouse_tile_supported() -> bool:
if below_tile_data != null:
return true
var building: Building = structures.get(below_tile_pos)
if is_instance_valid(building) and not building is Plant:
return true
if is_instance_valid(structures.get(below_tile_pos)):
var building: Building = structures.get(below_tile_pos)
if not building is Plant:
return true
return false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment