summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-19 10:04:03 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-19 10:04:03 +0000
commit70306b544f03239cad78e58d2f48cff5c4540fc7 (patch)
tree5849b8eacb3c8960384d3879be8a7f077b13182d /roadveh_cmd.c
parentd2c8412e50faf0312201398c9cc83d71c3b64708 (diff)
downloadopenttd-70306b544f03239cad78e58d2f48cff5c4540fc7.tar.xz
(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual variations
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 963f635ec..0c93972de 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -156,6 +156,7 @@ int32 CmdBuildRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
v->spritenum = rvi->image_index;
v->cargo_type = rvi->cargo_type;
+ v->cargo_subtype = 0;
v->cargo_cap = rvi->capacity;
// v->cargo_count = 0;
v->value = cost;