diff options
author | mvglasow <michael -at- vonglasow.com> | 2019-08-08 20:07:49 +0200 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2019-08-08 20:07:49 +0200 |
commit | d2b2045eb60b2e658946fe234bcff8c6272e423c (patch) | |
tree | 4b50c33a58346c03ecb2ea45134eeff6aa0c5b82 /navit/traffic.c | |
parent | 93483c117c357f092fb16f80372ab626f13483d1 (diff) | |
download | navit-d2b2045eb60b2e658946fe234bcff8c6272e423c.tar.gz |
Fix:traffic:Do not reset ccnt when we still need it
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/traffic.c')
-rw-r--r-- | navit/traffic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/traffic.c b/navit/traffic.c index 37e2ee136..cd89f88e5 100644 --- a/navit/traffic.c +++ b/navit/traffic.c @@ -3448,7 +3448,6 @@ static int traffic_message_restore_segments(struct traffic_message * this_, stru line = NULL; } - ccnt = -1; item = tm_add_item(map, type, id_hi, id_lo, flags, attrs, ca, ccnt, this_->id); @@ -3466,6 +3465,8 @@ static int traffic_message_restore_segments(struct traffic_message * this_, stru if (!data_curr) /* no more data to process, finish up */ break; + + ccnt = -1; } } seg_data = traffic_message_parse_events(this_); |