I log every time findClosestByPath(exit) returns not a RoomPosition.
And constantly receive messages like these:
[16:32:24] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #5609b3d15b98a02a0fa80610]
[16:32:35] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #5609b3d15b98a02a0fa80610]
[16:33:00] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #560748bd98fe6b9220df94e2]
[16:33:05] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #560748bd98fe6b9220df94e2]
[16:33:10] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #560748bd98fe6b9220df94e2]
[16:33:15] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #5609b3d15b98a02a0fa80610]
Can you please fix this bug?
This is the same issue I think:
http://support.screeps.com/hc/communities/public/questions/201504051-pos-findClosestByPath-flags-returns-not-a-flag