1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 16:36:43 +00:00

Fix boundary check

This commit is contained in:
elsid 2020-11-18 18:52:00 +01:00
parent 9363bc2d48
commit 9b11b8a27b
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -51,7 +51,7 @@ namespace DetourNavigator
const auto inum = imax - imin; const auto inum = imax - imin;
const auto icur = curNode; const auto icur = curNode;
if (curNode > nodes.size()) if (curNode >= nodes.size())
return; return;
ChunkyTriMeshNode& node = nodes[curNode++]; ChunkyTriMeshNode& node = nodes[curNode++];