summaryrefslogtreecommitdiff
path: root/src/creep.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/creep.js')
-rw-r--r--src/creep.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/creep.js b/src/creep.js
index 9725dc9..adf7f0c 100644
--- a/src/creep.js
+++ b/src/creep.js
@@ -21,6 +21,10 @@ Room.prototype.createCostMatrices = function() {
}
}
+ if (this.memory.cm == null) {
+ this.memory.cm = {};
+ }
+
this.memory.cm.road = roadGrid;
this.memory.cm.struct = structGrid;
}