mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Refactor pathgrid indices to use size_t instead of int
This commit is contained in:
parent
24a241352f
commit
8d8207b734
14 changed files with 208 additions and 236 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue