Fix condition

This commit is contained in:
Dennis Luxen 2024-05-06 21:20:28 +02:00
parent cadf0d6408
commit cfb61aefda

View File

@ -169,7 +169,7 @@ inline bool hasRoundaboutType(const TurnInstruction instruction)
TurnType::ExitRoundaboutIntersection,
TurnType::StayOnRoundabout};
return std::find(valid_types.cbegin(), valid_types.cend(), instruction.type);
return std::find(valid_types.cbegin(), valid_types.cend(), instruction.type) != valid_types.cend();
}
inline bool entersRoundabout(const guidance::TurnInstruction instruction)