Mirroar / hivemind

Fully automated open source AI core for the game screeps. Also usable as an opponent on private servers.
MIT License
29 stars 10 forks source link

Memory is not dependable initialized while draw map visuals #45

Closed R3dVenom closed 3 years ago

R3dVenom commented 3 years ago

https://github.com/Mirroar/hivemind/blob/69163b093be8e9e96cb938194eba51e114099af4/src/process.map-visuals.js#L55


TypeError: Cannot read property 'indexOf' of undefined
    at MapVisualsProcess.drawExpansionStatus (process.map-visuals:55:46)
    at _.each (process.map-visuals:21:9)
    at <isolated-vm>:3860:15
    at baseForOwn (<isolated-vm>:2833:14)
    at <isolated-vm>:3830:18
    at Function.<anonymous> (<isolated-vm>:4133:13)
    at MapVisualsProcess.run (process.map-visuals:18:5)
    at timeProcess (hivemind:133:45)
    at Hivemind.timeProcess (hivemind:192:2)```
Mirroar commented 3 years ago

Thanks for the report and sorry for not checking this first. I've pushed a fix.