diff options
author | frosch <frosch@openttd.org> | 2009-10-27 20:37:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-10-27 20:37:55 +0000 |
commit | 334b809644fd8055b7e45c790f42ffb1ab990878 (patch) | |
tree | 1b3f7e9926621a54e4bacbdd77215d467148f5cc /src/ship_cmd.cpp | |
parent | 778f6533ea9932ab79d495b08e625f1ffb6fc23e (diff) | |
download | openttd-334b809644fd8055b7e45c790f42ffb1ab990878.tar.xz |
(svn r17894) -Fix: Invalidate cache of vehicle vars 40-43 after testruns of certain commands, that change them temporarily.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index d6818e46e..0025aabac 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -955,11 +955,11 @@ CommandCost CmdRefitShip(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 v->cargo_type = new_cid; v->cargo_subtype = new_subtype; v->colourmap = PAL_NONE; // invalidate vehicle colour map - v->InvalidateNewGRFCacheOfChain(); SetWindowDirty(WC_VEHICLE_DETAILS, v->index); SetWindowDirty(WC_VEHICLE_DEPOT, v->tile); InvalidateWindowClassesData(WC_SHIPS_LIST, 0); } + v->InvalidateNewGRFCacheOfChain(); // always invalidate; querycost might have filled it return cost; |