/** Resets End Node Costs. Costs are updated on the end node at the start of the search to better reflect the end point passed to the path, the previous ones are saved in #endNodeCosts and are reset in this function which is called after the path search is complete */ public void ResetCosts(Path p) { #if FALSE if (!hasEndPoint) { return; } endNode.ResetCosts(endNodeCosts); #endif }