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

This commit is contained in:
peter1138
2006-05-03 12:17:02 +00:00
parent a364ec2397
commit eafbc33627

View File

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