diff options
author | frosch <frosch@openttd.org> | 2011-08-06 17:20:21 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-08-06 17:20:21 +0000 |
commit | c76d1c54b721cde80494fa70455cffe254bf3350 (patch) | |
tree | 6f8da9cf15a6ad96c83b9392c2cc3de2dbe01897 /src/ai/api/ai_rail.hpp | |
parent | ba7356b520b73b9080be95bf070b691db258c647 (diff) | |
download | openttd-c76d1c54b721cde80494fa70455cffe254bf3350.tar.xz |
(svn r22726) -Fix: AITile::GetCargoAcceptance, AITile::GetCargoProduction and AIRail::BuildNewGRFRailStation did not check the cargo argument for validity.
Diffstat (limited to 'src/ai/api/ai_rail.hpp')
-rw-r--r-- | src/ai/api/ai_rail.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_rail.hpp b/src/ai/api/ai_rail.hpp index 5f58c3014..9bb759ea7 100644 --- a/src/ai/api/ai_rail.hpp +++ b/src/ai/api/ai_rail.hpp @@ -279,6 +279,7 @@ public: * @pre num_platforms > 0 && num_platforms <= 255. * @pre platform_length > 0 && platform_length <= 255. * @pre station_id == AIStation::STATION_NEW || station_id == AIStation::STATION_JOIN_ADJACENT || AIStation::IsValidStation(station_id). + * @pre AICargo::IsValidCargo(cargo_type) * @pre source_industry == AIIndustryType::INDUSTRYTYPE_UNKNOWN || source_industry == AIIndustryType::INDUSTRYTYPE_TOWN || AIIndustryType::IsValidIndustryType(source_industry). * @pre goal_industry == AIIndustryType::INDUSTRYTYPE_UNKNOWN || goal_industry == AIIndustryType::INDUSTRYTYPE_TOWN || AIIndustryType::IsValidIndustryType(goal_industry). * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY |