Fix error upon revalidating after changing unsquare building threshold (close #6690)

This commit is contained in:
Quincy Morgan
2019-07-26 14:11:15 -04:00
parent b730e903a4
commit d5da5a601c

View File

@@ -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];