Upper bound for ordinals. Unlikely that any roundabout has more than 10

exits, but again, OSM has unlimited opportunities.
This commit is contained in:
DennisOSRM
2012-03-08 11:37:41 +01:00
parent 3ea1461839
commit 88890a1914
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ public:
if(TurnInstructions.LeaveRoundAbout == segment.turnInstruction) {
reply.content += TurnInstructions.TurnStrings[TurnInstructions.EnterRoundAbout];
reply.content += " and leave at ";
reply.content += TurnInstructions.Ordinals[roundAbout.leaveAtExit+1];
reply.content += TurnInstructions.Ordinals[std::min(11,roundAbout.leaveAtExit+1)];
reply.content += " exit";
roundAbout.leaveAtExit = 0;
} else {