diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index 7b5a678..0496b87 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -99,7 +99,7 @@ namespace omath::collision const int new_idx = static_cast(vertexes.size()); vertexes.emplace_back(p); - auto [to_delete, boundary] = mark_visible_and_collect_horizon(faces, p); + const auto [to_delete, boundary] = mark_visible_and_collect_horizon(faces, p); erase_marked(faces, to_delete);