(svn r4708) - NewGRF: fix selection of number of loaded and loading states.

pull/155/head
peter1138 19 years ago
parent a364ec2397
commit eafbc33627

@ -653,7 +653,7 @@ static uint32 VehicleResolveReal(const ResolverObject *object, uint num_loaded,
*in_motion = v->current_order.type != OT_LOADING;
}
totalsets = in_motion ? num_loaded : num_loading;
totalsets = *in_motion ? num_loaded : num_loading;
if (v->cargo_count == v->cargo_cap || totalsets == 1) {
set = totalsets - 1;

Loading…
Cancel
Save