summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_tile.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-08-06 17:20:21 +0000
committerfrosch <frosch@openttd.org>2011-08-06 17:20:21 +0000
commitc76d1c54b721cde80494fa70455cffe254bf3350 (patch)
tree6f8da9cf15a6ad96c83b9392c2cc3de2dbe01897 /src/ai/api/ai_tile.hpp
parentba7356b520b73b9080be95bf070b691db258c647 (diff)
downloadopenttd-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_tile.hpp')
-rw-r--r--src/ai/api/ai_tile.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/api/ai_tile.hpp b/src/ai/api/ai_tile.hpp
index 944821e00..17a292ae3 100644
--- a/src/ai/api/ai_tile.hpp
+++ b/src/ai/api/ai_tile.hpp
@@ -319,6 +319,7 @@ public:
* @param height The height of the station.
* @param radius The radius of the station.
* @pre AIMap::IsValidTile(tile).
+ * @pre AICargo::IsValidCargo(cargo_type)
* @pre width > 0.
* @pre height > 0.
* @pre radius >= 0.
@@ -335,6 +336,7 @@ public:
* @param height The height of the station.
* @param radius The radius of the station.
* @pre AIMap::IsValidTile(tile).
+ * @pre AICargo::IsValidCargo(cargo_type)
* @pre width > 0.
* @pre height > 0.
* @pre radius >= 0.