summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-12 18:10:42 +0000
committerfrosch <frosch@openttd.org>2012-11-12 18:10:42 +0000
commitf7fdcc00e584fe97c486b2072c0f26290a809583 (patch)
tree9c72f22ac5436449c02c0c106c1be4a75667b303 /src
parent56e63338edf134eada1827a41532baa94092a057 (diff)
downloadopenttd-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.cpp2
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;
}