diff options
author | frosch <frosch@openttd.org> | 2009-01-27 19:44:36 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-01-27 19:44:36 +0000 |
commit | 9a0d88176b203c02bf4e67bd43a3a5bc3ee22172 (patch) | |
tree | 9bca7c140f273d8118cf91dd362615b924c68ba5 /src/aircraft_cmd.cpp | |
parent | 993ba73aff37375a41d7e7948c8421a20be8934c (diff) | |
download | openttd-9a0d88176b203c02bf4e67bd43a3a5bc3ee22172.tar.xz |
(svn r15286) -Fix: Refitting did not invalidate vehicle-colour-maps of road-vehicles, ships and aircraft, as well vehicle-length of road-vehicles.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index cec144be4..4a14c2887 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -593,6 +593,7 @@ CommandCost CmdRefitAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, u->cargo.Truncate(v->cargo_type == new_cid ? mail : 0); v->cargo_type = new_cid; v->cargo_subtype = new_subtype; + v->colormap = PAL_NONE; // invalidate vehicle colour map InvalidateWindow(WC_VEHICLE_DETAILS, v->index); InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0); |