From 590c290ede9ed9da7e608614fbe170d489d1aa06 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 10 Jun 2019 22:43:42 +0200 Subject: [PATCH] Fix of a typo. --- src/admesh/shared.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admesh/shared.cpp b/src/admesh/shared.cpp index 78179e863..902bbfc9b 100644 --- a/src/admesh/shared.cpp +++ b/src/admesh/shared.cpp @@ -220,7 +220,7 @@ bool stl_validate(const stl_file *stl, const indexed_triangle_set &its) // Verify validity of neighborship data. for (int facet_idx = 0; facet_idx < (int)stl->stats.number_of_facets; ++ facet_idx) { const stl_neighbors &nbr = stl->neighbors_start[facet_idx]; - const int *vertices = (its.indices.empty()) ? nullptr : its.indices[facet_idx]; + const int *vertices = its.indices.empty() ? nullptr : its.indices[facet_idx].data(); for (int nbr_idx = 0; nbr_idx < 3; ++ nbr_idx) { int nbr_face = stl->neighbors_start[facet_idx].neighbor[nbr_idx]; assert(nbr_face < (int)stl->stats.number_of_facets);