Skip to content

Commit e5b410f

Browse files
authored
Update building.js
1 parent 9ddbe6d commit e5b410f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/building.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class Building {
422422
partIsInside(part) {
423423
const shape = part.shape;
424424
for (const vector of shape.extractPoints().shape) {
425-
if (BuildingShapeUtils.surrounds(this.outerShape, [vector.x, vector.y])) {
425+
if (BuildingShapeUtils.surrounds(this.outerElement.shape, [vector.x, vector.y])) {
426426
return true;
427427
}
428428
}

0 commit comments

Comments
 (0)