diff --git a/Detour/Source/DetourTileNavMesh.cpp b/Detour/Source/DetourTileNavMesh.cpp index 913a568..64c6753 100644 --- a/Detour/Source/DetourTileNavMesh.cpp +++ b/Detour/Source/DetourTileNavMesh.cpp @@ -757,7 +757,7 @@ int dtTiledNavMesh::findPath(dtTilePolyRef startRef, dtTilePolyRef endRef, if (!((actualNode->flags & DT_NODE_OPEN) && newNode.total > actualNode->total) && !((actualNode->flags & DT_NODE_CLOSED) && newNode.total > actualNode->total)) { - actualNode->flags &= DT_NODE_CLOSED; + actualNode->flags &= ~DT_NODE_CLOSED; actualNode->pidx = newNode.pidx; actualNode->cost = newNode.cost; actualNode->total = newNode.total;