summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-04 18:16:32 +0000
committerrubidium <rubidium@openttd.org>2010-01-04 18:16:32 +0000
commit71f2789270ca091af14ab4cfd64a4f17234cf007 (patch)
tree0f36e792e9bb853140257564a530be65751e1ea6 /src/ai/api
parent31b325baafc0abe02c380af63dd6f5fe86f573fd (diff)
downloadopenttd-71f2789270ca091af14ab4cfd64a4f17234cf007.tar.xz
(svn r18716) -Codechange: pass a TileArea to FindStationsAroundTiles
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_industry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_industry.cpp b/src/ai/api/ai_industry.cpp
index 7a5489470..d9fcf36eb 100644
--- a/src/ai/api/ai_industry.cpp
+++ b/src/ai/api/ai_industry.cpp
@@ -124,7 +124,7 @@
Industry *ind = ::Industry::Get(industry_id);
StationList stations;
- ::FindStationsAroundTiles(ind->xy, ind->width, ind->height, &stations);
+ ::FindStationsAroundTiles(TileArea(ind->xy, ind->width, ind->height), &stations);
return (int32)stations.Length();
}