From 75a818a32540ee05a244aae368fb84bf08b1ffc7 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 31 May 2009 11:04:56 +0000 Subject: [PATCH] (svn r16477) -Fix [FS#2936] (r12650): loading indicator when 'unload' in and 'no loading' is off was pointing to the wrong direction. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 6e3d420bb0..10db2cf0b5 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -948,7 +948,7 @@ uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *colour) max += v->cargo_cap; if (v->cargo_cap != 0 && colour != NULL) { unloading += HasBit(v->vehicle_flags, VF_CARGO_UNLOADING) ? 1 : 0; - loading |= !(u->current_order.GetUnloadType() & OUFB_UNLOAD) && st->goods[v->cargo_type].days_since_pickup != 255; + loading |= !(u->current_order.GetLoadType() & OLFB_NO_LOAD) && st->goods[v->cargo_type].days_since_pickup != 255; cars++; } }