From 71f2789270ca091af14ab4cfd64a4f17234cf007 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 4 Jan 2010 18:16:32 +0000 Subject: (svn r18716) -Codechange: pass a TileArea to FindStationsAroundTiles --- src/ai/api/ai_industry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') 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(); } -- cgit v1.2.3-70-g09d2