(svn r25156) -Fix [FS#5495, FS#5497]: if a vehicle had some cargo, and it would try to unload without actually unloading, the vehicle would just not load any cargo at the station (fonsinchen)

This commit is contained in:
rubidium 2013-04-06 18:57:18 +00:00
parent 2d67f07975
commit 2b6669a7ff
1 changed files with 1 additions and 1 deletions

View File

@ -1220,7 +1220,7 @@ void PrepareUnload(Vehicle *front_v)
v->cargo.Stage(
HasBit(Station::Get(front_v->last_station_visited)->goods[v->cargo_type].acceptance_pickup, GoodsEntry::GES_ACCEPTANCE),
front_v->last_station_visited, front_v->current_order.GetUnloadType());
SetBit(v->vehicle_flags, VF_CARGO_UNLOADING);
if (v->cargo.UnloadCount() > 0) SetBit(v->vehicle_flags, VF_CARGO_UNLOADING);
}
}
}