summaryrefslogtreecommitdiff
path: root/ship_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
commitcd6ab6178c7daf0aa1c00eda66671f57fc1f73fd (patch)
tree5849b8eacb3c8960384d3879be8a7f077b13182d /ship_cmd.c
parent62dbc3674138aeaa2da4883e4e45cc77222da794 (diff)
downloadopenttd-cd6ab6178c7daf0aa1c00eda66671f57fc1f73fd.tar.xz
(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual variations
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index 1d6e1383d..0f9abf178 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -863,6 +863,7 @@ int32 CmdBuildShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
v->spritenum = svi->image_index;
v->cargo_type = svi->cargo_type;
+ v->cargo_subtype = 0;
v->cargo_cap = svi->capacity;
v->value = value;