assert(_used_rect.get_area() >= 0)

This commit is contained in:
2024-06-01 17:39:16 +02:00
parent 484c0cd080
commit 4543f67a26
2 changed files with 2 additions and 2 deletions

View File

@@ -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)