diff options
author | rubidium <rubidium@openttd.org> | 2006-12-26 15:28:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-12-26 15:28:11 +0000 |
commit | c140ca6f200e48444ccec4320067dd91165d98f0 (patch) | |
tree | d978822803398fab14cfb710a8ad0fa321cc8a3b /economy.h | |
parent | b58c90a07539a15f3f05c5b11ca3bb5ebdda5fe8 (diff) | |
download | openttd-c140ca6f200e48444ccec4320067dd91165d98f0.tar.xz |
(svn r7563) -Fix (FS#468): removing towns in the scenario editor could leave subsidies with that town as source/destination, resulting in an assertion when displaying the Subsidies Window.
Diffstat (limited to 'economy.h')
-rw-r--r-- | economy.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -60,8 +60,9 @@ int UpdateCompanyRatingAndValue(Player *p, bool update); VARDEF Subsidy _subsidies[MAX_PLAYERS]; Pair SetupSubsidyDecodeParam(const Subsidy* s, bool mode); -void DeleteSubsidyWithIndustry(uint16 index); -void DeleteSubsidyWithStation(uint16 index); +void DeleteSubsidyWithTown(TownID index); +void DeleteSubsidyWithIndustry(IndustryID index); +void DeleteSubsidyWithStation(StationID index); int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type); uint MoveGoodsToStation(TileIndex tile, int w, int h, int type, uint amount); |