Exception assistance

Getting this exception in ABPath

We’re on an old version of the plugin, so the latest code looks drastically different than this, but the issue seems to be that this code expects a GridNode typed node, or it throws. But our node type is derived from LevelGridNode, which is not a GridNode, but a GridNodeBase. And GridNodeBase doesn’t have the ClosestPointOnNode function.

I can trace this back to flag1 that is set here

The actual exception message seems bogus. It’s not a cleanup issue. It’s a deliberate setting of the flag1 from this special case code, referenced by the hTargetNode of the current search.

This seems to address it well enough.