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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
peter1138 18 years ago
parent 102ca98c1c
commit d50896be63

@ -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