Ticket #634: route.c.path

File route.c.path, 547 bytes (added by nioui, 10 years ago)
Line 
1Index: navit/route.c
2===================================================================
3--- navit/route.c       (revision 3510)
4+++ navit/route.c       (working copy)
5@@ -693,7 +693,7 @@
6        route_set_attr(this, &route_status);
7        prev_dst=route_previous_destination(this);
8        this->path2=route_path_new(this->graph, oldpath, prev_dst, this->current_dst, this->vehicleprofile);
9-       if (oldpath) {
10+       if (oldpath && this->path2) {
11                if (!item_is_equal(oldpath->path_last->data->item,this->path2->path_last->data->item)) {
12                        this->path2->next=oldpath;
13                } else {