From 322b2da953f708a521828439bd611d62b75cb7c5 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 25 Aug 2013 15:43:52 +0000 Subject: (svn r25744) -Fix (r25648): [NewGRF] Also invalidate vehicle colour palette when rearranging consists. --- src/train_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index b61a9116c..96af0ec0c 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1300,6 +1300,9 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, u CheckCargoCapacity(dst_head); } + if (src_head != NULL) src_head->First()->MarkDirty(); + if (dst_head != NULL) dst_head->First()->MarkDirty(); + /* We are undoubtedly changing something in the depot and train list. */ InvalidateWindowData(WC_VEHICLE_DEPOT, src->tile); InvalidateWindowClassesData(WC_TRAINS_LIST, 0); -- cgit v1.2.3-54-g00ecf