summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-30 20:13:12 +0000
committersmatz <smatz@openttd.org>2009-05-30 20:13:12 +0000
commit8c11d612e44c30e124881ca47e15eda9ef0c5491 (patch)
tree3fdeab30fd2afc97d9b36c09471e7ce31b56d8c2 /src/vehicle.cpp
parent7633362912384ba7759724a2bbc057d97e5f27f0 (diff)
downloadopenttd-8c11d612e44c30e124881ca47e15eda9ef0c5491.tar.xz
(svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor instead of constructor of each vehicle type
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 2d673e86c..6e3d420bb 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -188,9 +188,9 @@ bool HasVehicleOnTunnelBridge(TileIndex tile, TileIndex endtile, const Vehicle *
}
-Vehicle::Vehicle()
+Vehicle::Vehicle(VehicleType type)
{
- this->type = VEH_INVALID;
+ this->type = type;
this->coord.left = INVALID_COORD;
this->group_id = DEFAULT_GROUP;
this->fill_percent_te_id = INVALID_TE_ID;