Skip to content

Commit

Permalink
Fixing out of border access
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Derbasov <[email protected]>
  • Loading branch information
ntfshard authored Jul 23, 2024
1 parent 0ba046a commit fe8b008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphics/src/SubMesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ struct Neighbors
break;
it = prev;
}
while (gz::math::equal(it->first, _point.X()))
while (it != this->neighbors.end()
&& gz::math::equal(it->first, _point.X()))
{
for (const auto index : it->second)
if (this->vertices[index] == _point)
Expand Down

0 comments on commit fe8b008

Please sign in to comment.