mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-29 21:46:33 +00:00
bugfix in raycast: accidentally overwriting the previous tile ref.
This commit is contained in:
@@ -2401,7 +2401,7 @@ dtStatus dtNavMeshQuery::raycast(dtPolyRef startRef, const float* startPos, cons
|
||||
nextTile = prevTile = tile;
|
||||
nextPoly = prevPoly = poly;
|
||||
if (prevRef)
|
||||
m_nav->getTileAndPolyByRefUnsafe(prevRef, &tile, &poly);
|
||||
m_nav->getTileAndPolyByRefUnsafe(prevRef, &prevTile, &prevPoly);
|
||||
|
||||
while (curRef)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user