diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-04 16:52:42 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-04 16:52:42 +0000 |
commit | fb27aefab25dfbb67abe24cd17b6bcddc0734b54 (patch) | |
tree | b23f70b041b77e95a345b564223ffe022b572e9f | |
parent | 27dd6731c63cff7282a7c1ee6248f47d44dbd04e (diff) | |
download | navit-svn-fb27aefab25dfbb67abe24cd17b6bcddc0734b54.tar.gz |
Fix:Core:Fixed vehicle switching
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/src@1040 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1193,12 +1193,12 @@ navit_set_attr(struct navit *this_, struct attr *attr) } 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); |