Refactor pathgrid indices to use size_t instead of int

This commit is contained in:
Evil Eye 2023-04-08 00:32:43 +00:00 committed by psi29a
parent 24a241352f
commit 8d8207b734
14 changed files with 208 additions and 236 deletions

View file

@ -96,8 +96,7 @@ namespace SceneUtil
for (ESM::Pathgrid::EdgeList::const_iterator edge = pathgrid.mEdges.begin(); edge != pathgrid.mEdges.end();
++edge)
{
if (edge->mV0 == edge->mV1 || edge->mV0 < 0 || edge->mV0 >= PointCount || edge->mV1 < 0
|| edge->mV1 >= PointCount)
if (edge->mV0 == edge->mV1 || edge->mV0 >= PointCount || edge->mV1 >= PointCount)
continue;
const ESM::Pathgrid::Point& from = pathgrid.mPoints[edge->mV0];