mirror of https://github.com/CGAL/cgal
check vector size before access
This commit is contained in:
parent
86a5b78992
commit
d2ad8565a3
|
|
@ -499,6 +499,8 @@ namespace CGAL {
|
|||
bool is_same(const Shape_base *other) const {
|
||||
if (!other)
|
||||
return false;
|
||||
if (other->m_indices.size() == 0)
|
||||
return true;
|
||||
|
||||
const std::size_t num = 9;
|
||||
int score = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue