Core/PathFinding: Fix mmaps raycast without hit

Update Z coordinate of end position when casting a mmap raycast that doesn't hit the target

(cherry picked from commit 16ccc17621)
This commit is contained in:
jackpoz
2020-03-03 21:39:01 +01:00
committed by Shauren
parent 207d8ac354
commit d89671dd59

View File

@@ -457,6 +457,8 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con
_type = PATHFIND_INCOMPLETE;
return;
}
else
_navMeshQuery->getPolyHeight(_pathPolyRefs[_polyLength - 1], endPoint, &endPoint[1]);
}
else
{