# HG changeset patch # User frosch # Date 2013-08-06 17:31:16 # Node ID 25c8bad3ec3cb5299fb37cc5f8d1c354ebf65284 # Parent c9f76dcb9f8492c6cd51dc3f251adcd8959f0af2 (svn r25695) -Fix [FS#5700] (r24882, r25648): Vehicle::MarkDirty must be called for the front engine. diff --git a/src/vehicle.cpp b/src/vehicle.cpp --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -856,7 +856,7 @@ static void RunVehicleDayProc() /* After a vehicle trigger, the graphics and properties of the vehicle could change. * Note: MarkDirty also invalidates the palette, which is the meaning of bit 1. So, nothing special there. */ - if (callback != 0) v->MarkDirty(); + if (callback != 0) v->First()->MarkDirty(); if (callback & ~3) ErrorUnknownCallbackResult(v->GetGRFID(), CBID_VEHICLE_32DAY_CALLBACK, callback); }