From d5da5a601c3df1c0bba884c09089cd648b604c66 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 26 Jul 2019 14:11:15 -0400 Subject: [PATCH] Fix error upon revalidating after changing unsquare building threshold (close #6690) --- modules/core/validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/validator.js b/modules/core/validator.js index 1a60e908b..e01a207a5 100644 --- a/modules/core/validator.js +++ b/modules/core/validator.js @@ -94,7 +94,7 @@ export function coreValidator(context) { // rerun for all buildings buildings.forEach(function(entity) { - var detected = checkUnsquareWay(entity, context); + var detected = checkUnsquareWay(entity, context.graph()); if (detected.length !== 1) return; var issue = detected[0];