summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-04 18:12:10 +0000
committerrubidium <rubidium@openttd.org>2010-01-04 18:12:10 +0000
commit31b325baafc0abe02c380af63dd6f5fe86f573fd (patch)
treee30c57a9b62586f846c736ccfa4ee5a10eb86049 /src/unmovable_cmd.cpp
parent8b88bb0c9bf1072881b4111a339eb6781fdb80bc (diff)
downloadopenttd-31b325baafc0abe02c380af63dd6f5fe86f573fd.tar.xz
(svn r18715) -Codechange: make StationFinder a subclass of TileArea
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index 73d7da29a..aab147099 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -343,7 +343,7 @@ static void TileLoop_Unmovable(TileIndex tile)
uint level = GetCompanyHQSize(tile) + 1;
assert(level < 6);
- StationFinder stations(tile, 2, 2);
+ StationFinder stations(TileArea(tile, 2, 2));
uint r = Random();
/* Top town buildings generate 250, so the top HQ type makes 256. */