summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
Diffstat (limited to 'navit')
-rw-r--r--navit/track.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/track.c b/navit/track.c
index 3057f3603..0c3f84a3d 100644
--- a/navit/track.c
+++ b/navit/track.c
@@ -767,7 +767,7 @@ tracking_update(struct tracking *tr, struct vehicle *v, struct vehicleprofile *v
tr->coord_geo_valid=0;
tr->street_direction=0;
}
- if (tr->curr_line && tr->curr_line->street->flags & AF_UNDERGROUND) {
+ if (tr->curr_line && (tr->curr_line->street->flags & AF_UNDERGROUND)) {
if (tr->no_gps)
tr->tunnel=1;
} else if (tr->tunnel) {