Skip to content

Commit ff12939

Browse files
authored
Update building.js
1 parent 1f2ab9e commit ff12939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/building.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ class Building {
418418
*/
419419
partIsInside(part) {
420420
const shape = part.shape;
421-
for (const point of shape.extractPoints().shape) {
422-
if (BuildingShapeUtils.surrounds(this.outerShape(point))) {
421+
for (const vector of shape.extractPoints().shape) {
422+
if (BuildingShapeUtils.surrounds(this.outerShape, [vector.x, vector.y])) {
423423
return true;
424424
}
425425
}

0 commit comments

Comments
 (0)