diff --git a/CPP/Clipper2Lib/include/clipper2/clipper.export.h b/CPP/Clipper2Lib/include/clipper2/clipper.export.h index 6bb71bab..53a44536 100644 --- a/CPP/Clipper2Lib/include/clipper2/clipper.export.h +++ b/CPP/Clipper2Lib/include/clipper2/clipper.export.h @@ -281,11 +281,11 @@ static Path ConvertCPath(T* path) T* v = path; size_t cnt = static_cast(*v); v += 2; // skip 0 value - path.reserve(cnt); + result.reserve(cnt); for (size_t j = 0; j < cnt; ++j) { T x = *v++, y = *v++; - path.push_back(Point(x, y)); + result.push_back(Point(x, y)); } return result; }