diff options
author | frosch <frosch@openttd.org> | 2012-11-12 18:10:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-12 18:10:42 +0000 |
commit | f7fdcc00e584fe97c486b2072c0f26290a809583 (patch) | |
tree | 9c72f22ac5436449c02c0c106c1be4a75667b303 /src | |
parent | 56e63338edf134eada1827a41532baa94092a057 (diff) | |
download | openttd-f7fdcc00e584fe97c486b2072c0f26290a809583.tar.xz |
(svn r24706) -Fix (r10981): [NewGRF] Station var 48 should report acceptance, not supply.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 4b5c5468a..5751ad31d 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -394,7 +394,7 @@ uint32 Station::GetNewGRFVariable(const ResolverObject *object, byte variable, b uint32 value = 0; for (cargo_type = 0; cargo_type < NUM_CARGO; cargo_type++) { - if (HasBit(this->goods[cargo_type].acceptance_pickup, GoodsEntry::GES_PICKUP)) SetBit(value, cargo_type); + if (HasBit(this->goods[cargo_type].acceptance_pickup, GoodsEntry::GES_ACCEPTANCE)) SetBit(value, cargo_type); } return value; } |