mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix f7248539
: Cargo reserved count not set in station goods entry save
This commit is contained in:
parent
8450747010
commit
56fc3ec6ce
@ -629,6 +629,11 @@ struct StationGoodsStructHandler final : public TypedSaveLoadStructHandler<Stati
|
||||
SlSetStructListLength(NUM_CARGO);
|
||||
|
||||
for (GoodsEntry &ge : st->goods) {
|
||||
if (ge.data != nullptr) {
|
||||
_cargo_reserved_count = ge.data->cargo.ReservedCount();
|
||||
} else {
|
||||
_cargo_reserved_count = 0;
|
||||
}
|
||||
SlObjectSaveFiltered(&ge, this->GetLoadDescription());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user