(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)
--- 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);
}