diff options
author | rubidium <rubidium@openttd.org> | 2009-07-01 09:45:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-01 09:45:30 +0000 |
commit | 8e804a4b6c694c75e6dca6d529332541776c73cb (patch) | |
tree | 20de1f2c38acda2126f2c56cbbd0cd21618d506b /src/economy.cpp | |
parent | e3627dabda09125fa010a5c8eb1618a8ad2d32c0 (diff) | |
download | openttd-8e804a4b6c694c75e6dca6d529332541776c73cb.tar.xz |
(svn r16706) -Fix (r16694): acquiring a subsidy resulted in an assertion.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index d4647fd9c..b313c89a6 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1085,7 +1085,7 @@ static Money DeliverGoods(int num_pieces, CargoID cargo_type, StationID source, const Station *s_from = Station::Get(source); /* Check if a subsidy applies. */ - subsidised = CheckSubsidised(s_from, s_to, cargo_type); + subsidised = CheckSubsidised(s_from, s_to, cargo_type, company->index); } /* Increase town's counter for some special goods types */ |