assert(_used_rect.get_area() >= 0)
This commit is contained in:
@@ -16,7 +16,7 @@ func _init(map: TileMap):
|
||||
_used_rect = map.get_used_rect()
|
||||
|
||||
# assert stuff here because the extension's assertions just crash without a message
|
||||
assert(_used_rect.get_area() > 0)
|
||||
assert(_used_rect.get_area() >= 0)
|
||||
|
||||
_astar = MultilevelAStarEx.new()
|
||||
_astar.init(_used_rect)
|
||||
|
||||
Reference in New Issue
Block a user