git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1040
ffa7fe5e-494d-0410-b361-
a75ebd5db220
}
break;
case attr_vehicle:
- if (this_->vehicle && this_->vehicle->vehicle != attr->u.vehicle) {
+ if (!this_->vehicle || this_->vehicle->vehicle != attr->u.vehicle) {
GList *l;
l=this_->vehicles;
while(l) {
if (((struct navit_vehicle *)l->data)->vehicle == attr->u.vehicle) {
- this_->vehicle=(struct navit_vehicle *)l;
+ this_->vehicle=(struct navit_vehicle *)l->data;
attr_updated=1;
}
l=g_list_next(l);