summaryrefslogtreecommitdiff
path: root/navit/vehicle.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-07-13 20:37:21 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-07-13 20:37:21 +0000
commitd045e724b04751c32d9fb16fe557310d6b344ed6 (patch)
tree348982a8ff4008983916195f9330f2eeb6cf6a4b /navit/vehicle.c
parentcc9c9726f2edc87b8509b2b6f0ae036b3efe37d7 (diff)
downloadnavit-svn-d045e724b04751c32d9fb16fe557310d6b344ed6.tar.gz
Fix:core:Integrate transform_setup into transform_new. Avoids two-step initialization and access to undefined variables in struct transform.|Part of fix for #1145.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5544 ffa7fe5e-494d-0410-b361-a75ebd5db220
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 a6777946..c28d5956 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");