diff options
| author | Tom Harley | 2020-01-25 03:12:17 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-01-25 03:12:17 +0000 |
| commit | 19c4d21504f8a01539797591533101df3c168ce7 (patch) | |
| tree | 45795f29672d23f61e556ad6220e066a5a948db9 /src/creep.js | |
| parent | Turns out screeps doesn't like folders (diff) | |
| download | screeps-ai-master.tar.gz screeps-ai-master.zip | |
Diffstat (limited to 'src/creep.js')
| -rw-r--r-- | src/creep.js | 4 |
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; } |
