summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcreate-data.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/create-data.js b/create-data.js
index 412e4d0..2fc85a3 100755
--- a/create-data.js
+++ b/create-data.js
@@ -643,6 +643,10 @@ function createBuildingParts(buildings, callback) {
partLevels = [ partLevels ];
}
+ if (typeof(partLevels) === "undefined") {
+ continue;
+ }
+
//console.log("part levels " + JSON.stringify(partLevels));
possibleLevels = partLevels.filter(function(possibility) {