mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 20:45:34 +00:00
Fix boundary check
This commit is contained in:
parent
9363bc2d48
commit
9b11b8a27b
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ namespace DetourNavigator
|
|||
const auto inum = imax - imin;
|
||||
const auto icur = curNode;
|
||||
|
||||
if (curNode > nodes.size())
|
||||
if (curNode >= nodes.size())
|
||||
return;
|
||||
|
||||
ChunkyTriMeshNode& node = nodes[curNode++];
|
||||
|
|
Loading…
Reference in a new issue