Fix two point area test

This commit is contained in:
Dan Paulat 2023-12-03 09:37:27 -06:00
parent a56b7400a4
commit 7cf2121b8e

View file

@ -30,7 +30,7 @@ bool AreaContainsPoint(const std::vector<common::Coordinate>& area,
const common::Coordinate& point)
{
// Cannot have an area with just two points
if (area.size() <= 2 || area.size() == 3 && area.front() == area.back())
if (area.size() <= 2 || (area.size() == 3 && area.front() == area.back()))
{
return false;
}