(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)
authorbjarni
Sun, 30 Oct 2005 15:50:08 +0000
changeset 2568 b1fc2c980415
parent 2567 735280bafe7a
child 2569 2851becf6330
(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)
aircraft_cmd.c
ship_cmd.c
--- a/aircraft_cmd.c	Sun Oct 30 11:00:54 2005 +0000
+++ b/aircraft_cmd.c	Sun Oct 30 15:50:08 2005 +0000
@@ -550,6 +550,7 @@
 		u = v->next;
 		mail = (new_cid != CT_PASSENGERS) ? 0 : avi->mail_capacity;
 		u->cargo_cap = mail;
+		v->cargo_count = u->cargo_count = 0;
 		v->cargo_type = new_cid;
 		InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
 	}
--- a/ship_cmd.c	Sun Oct 30 11:00:54 2005 +0000
+++ b/ship_cmd.c	Sun Oct 30 15:50:08 2005 +0000
@@ -1092,6 +1092,7 @@
 	}
 
 	if (flags & DC_EXEC) {
+		v->cargo_count = 0;
 		v->cargo_type = new_cid;
 		InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
 	}