diff options
author | frosch <frosch@openttd.org> | 2013-08-06 17:31:16 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-08-06 17:31:16 +0000 |
commit | 2770a24f9f662c702ed6f3b469950d0e65d8423a (patch) | |
tree | af8dc540e0b8460b6bd5f7c7e5550b606235d7d9 /src | |
parent | 4ed08dcd601365ef4a29b2c1d5ae45b301fc08a3 (diff) | |
download | openttd-2770a24f9f662c702ed6f3b469950d0e65d8423a.tar.xz |
(svn r25695) -Fix [FS#5700] (r24882, r25648): Vehicle::MarkDirty must be called for the front engine.
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 990eaf303..a57834ec4 100644 --- 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); } |