fixed NP in Voice-Hint-Processing

This commit is contained in:
Arndt 2016-10-14 19:16:32 +02:00
parent 56bdf76806
commit 372673be7a

View file

@ -148,6 +148,8 @@ public class VoiceHint
{
float lowerBadWayAngle = -181;
float higherBadWayAngle = 181;
if ( badWays != null )
{
for ( MessageData badWay : badWays )
{
if ( badWay.isBadOneway() )
@ -163,6 +165,7 @@ public class VoiceHint
higherBadWayAngle = badWay.turnangle;
}
}
}
float cmdAngle= angle;