updateController on invalid Target: weird response
-
creep.updateController(target) on a target that does not exist (or is not in a visible room and thus couldn't be fetched) results in an error saying:
Cannot read property 'owner' of undefined
Doesn't quite seem intended, especially since I didn't do anything regarding the owner. I would have expected ERR_INVALID_TARGET.
-
I couldn't reproduce this issue. Please provide a code snippet to reproduce this.
-
Can't reproduce right now either, doesn't seem to be a general issue with that function; but I've run into that issue a couple of times, I'll try to narrow the problem down and update this when it happens again.