mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r4708) - NewGRF: fix selection of number of loaded and loading states.
This commit is contained in:
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…
Reference in New Issue
Block a user