diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/subsidy.cpp | 2 | ||||
-rw-r--r-- | src/subsidy_func.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/subsidy.cpp b/src/subsidy.cpp index 2ee28c720..12fc73682 100644 --- a/src/subsidy.cpp +++ b/src/subsidy.cpp @@ -286,7 +286,7 @@ no_add:; InvalidateWindow(WC_SUBSIDIES_LIST, 0); } -bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type) +bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type) { Subsidy *s; TileIndex xy; diff --git a/src/subsidy_func.h b/src/subsidy_func.h index 608dadfed..063c59233 100644 --- a/src/subsidy_func.h +++ b/src/subsidy_func.h @@ -16,7 +16,7 @@ Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode); void DeleteSubsidyWithTown(TownID index); void DeleteSubsidyWithIndustry(IndustryID index); void DeleteSubsidyWithStation(StationID index); -bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type); +bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type); void SubsidyMonthlyHandler(); #endif /* SUBSIDY_FUNC_H */ |