summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-29 21:24:08 +0000
committerrubidium <rubidium@openttd.org>2007-04-29 21:24:08 +0000
commit202009522c3075e26b675ed0408075b8663b0859 (patch)
tree776fa0d9e85c7423a43aaea0f6277b62b8acecf9 /src/roadveh_cmd.cpp
parent95e48eacaca785dacdda7d601ae7060b00b1f719 (diff)
downloadopenttd-202009522c3075e26b675ed0408075b8663b0859.tar.xz
(svn r9754) -Codechange: make classes for all vehicle types, so we can make nicer/better maintainable code, i.e. virtual methods instead of switches.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 5f8612bc9..012233164 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -205,7 +205,7 @@ int32 CmdBuildRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
v->date_of_last_service = _date;
v->build_year = _cur_year;
- v->type = VEH_ROAD;
+ v = new (v) RoadVehicle();
v->cur_image = 0xC15;
v->random_bits = VehicleRandomBits();