1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)

This commit is contained in:
bjarni
2005-10-30 15:50:08 +00:00
parent c406487b14
commit 1ef02f8cca
2 changed files with 2 additions and 0 deletions

View File

@@ -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);
}