summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-10-30 15:50:08 +0000
committerbjarni <bjarni@openttd.org>2005-10-30 15:50:08 +0000
commitf0629b5fc326f0d964cb664a3955763da2ab5870 (patch)
treeb3b54df1ff64a71d4130acde4defc156143f4f5b /ship_cmd.c
parent3e7f2815198883683b554d31a3c30a94d0926c8d (diff)
downloadopenttd-f0629b5fc326f0d964cb664a3955763da2ab5870.tar.xz
(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)
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 a75394e74..30f68c014 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -1092,6 +1092,7 @@ int32 CmdRefitShip(int x, int y, uint32 flags, uint32 p1, uint32 p2)
}
if (flags & DC_EXEC) {
+ v->cargo_count = 0;
v->cargo_type = new_cid;
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
}