Update GoalManager.coffee

For compound goals like GetAllToLocation, you should continue adding to the existing list of thang states.
This commit is contained in:
gosnat 2014-05-05 13:22:57 -05:00
parent d94856d00c
commit 93d117100a

View file

@ -204,7 +204,7 @@ module.exports = class GoalManager extends CocoClass
arrays = (prop for prop in whos when prop?.length)
return unless arrays.length
state[progressObjectName] = {}
state[progressObjectName] = state[progressObjectName] ? {}
for array in arrays
for thang in array
if @thangTeams[thang]?