As the title suggests, a creep can find the object closest by path, but can't find the path to the object?
Context is a creep just entering a new room, and looking for a source to harvest. I refactored the code to find the error, so don't think about the specifics too much.
Relevant code:
I don't understand how creep.pos.findClosestByPath can return an instance of an object, but creep.moveTo(object) can't find a path.
The relevant room; creep position drawn in red