bugfix in raycast: accidentally overwriting the previous tile ref.
This commit is contained in:
parent
86328ced48
commit
2172c712b1
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user