Skip to content

Commit 6a907e3

Browse files
committed
Fix issue DFHack#195 - off by one error in building dimensions
1 parent f5ef146 commit 6a907e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/modules/Buildings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ bool Buildings::containsTile(df::building *bld, df::coord2d tile, bool room)
635635
}
636636
else
637637
{
638-
if (tile.x < bld->x1 || tile.x > bld->x2 || tile.y < bld->y1 || tile.y >= bld->y2)
638+
if (tile.x < bld->x1 || tile.x > bld->x2 || tile.y < bld->y1 || tile.y > bld->y2)
639639
return false;
640640
}
641641

0 commit comments

Comments
 (0)