From d580328dd161a709f10404191e1177577c1a0961 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 12 Nov 2012 18:10:42 +0000 Subject: [PATCH] (svn r24706) -Fix (r10981): [NewGRF] Station var 48 should report acceptance, not supply. --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 4b5c5468a9..5751ad31dd 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; }