getClosestByPath should return the path too
-
I'm looking at optimising my pathfinding and while getClosestByPath is sometimes needed in some rooms due to complex layout, I'm finding that I'm having to recalculate the path after I've already called this.
The function already has the path data, it could just return it along with the object.