Recast: fix incorrect vertex flip in dtNavMeshQuery::raycast

This shouldn't be flipped.
This commit is contained in:
Kawe Mazidjatari 2024-07-13 12:04:35 +02:00
parent fadb53cb46
commit 492fea89f6

View File

@ -2578,8 +2578,8 @@ dtStatus dtNavMeshQuery::raycast(dtPolyRef startRef, const float* startPos, cons
}
// Check for partial edge links.
const int v1 = poly->verts[link->edge];
const int v0 = poly->verts[(link->edge+1) % poly->vertCount];
const int v0 = poly->verts[link->edge];
const int v1 = poly->verts[(link->edge+1) % poly->vertCount];
const float* left = &tile->verts[v0*3];
const float* right = &tile->verts[v1*3];