(svn r24706) -Fix (r10981): [NewGRF] Station var 48 should report acceptance, not supply.

This commit is contained in:
frosch 2012-11-12 18:10:42 +00:00
parent 56e63338ed
commit f7fdcc00e5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}