mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 20:09:41 +00:00
Avoid duplicate duplicate pathgrid point warnings
This commit is contained in:
parent
1e5330d9da
commit
e1ae7a9b0e
1 changed files with 1 additions and 4 deletions
|
@ -100,11 +100,8 @@ void CSMTools::PathgridCheckStage::perform (int stage, CSMDoc::Messages& message
|
|||
|
||||
// check duplicate points
|
||||
// FIXME: how to do this efficiently?
|
||||
for (unsigned int j = 0; j < pathgrid.mPoints.size(); ++j)
|
||||
for (unsigned int j = 0; j != i; ++j)
|
||||
{
|
||||
if (j == i)
|
||||
continue;
|
||||
|
||||
if (pathgrid.mPoints[i].mX == pathgrid.mPoints[j].mX &&
|
||||
pathgrid.mPoints[i].mY == pathgrid.mPoints[j].mY &&
|
||||
pathgrid.mPoints[i].mZ == pathgrid.mPoints[j].mZ)
|
||||
|
|
Loading…
Reference in a new issue