summaryrefslogtreecommitdiff
path: root/navit/vehicle.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r--navit/vehicle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c
index a67779467..c28d5956c 100644
--- a/navit/vehicle.c
+++ b/navit/vehicle.c
@@ -126,11 +126,10 @@ vehicle_new(struct attr *parent, struct attr **attrs)
}
this_->attrs=attr_list_dup(attrs);
- this_->trans=transform_new();
center.pro=projection_screen;
center.x=0;
center.y=0;
- transform_setup(this_->trans, &center, 16, 0);
+ this_->trans=transform_new(&center, 16, 0);
vehicle_set_default_name(this_);
dbg(1, "leave\n");