diff options
author | rubidium <rubidium@openttd.org> | 2010-01-04 18:12:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-04 18:12:10 +0000 |
commit | 31b325baafc0abe02c380af63dd6f5fe86f573fd (patch) | |
tree | e30c57a9b62586f846c736ccfa4ee5a10eb86049 /src/industry_cmd.cpp | |
parent | 8b88bb0c9bf1072881b4111a339eb6781fdb80bc (diff) | |
download | openttd-31b325baafc0abe02c380af63dd6f5fe86f573fd.tar.xz |
(svn r18715) -Codechange: make StationFinder a subclass of TileArea
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 8e4b7ffcb..0c329bd8e 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -509,7 +509,7 @@ static void TransportIndustryGoods(TileIndex tile) const IndustrySpec *indspec = GetIndustrySpec(i->type); bool moved_cargo = false; - StationFinder stations(i->xy, i->width, i->height); + StationFinder stations(TileArea(i->xy, i->width, i->height)); for (uint j = 0; j < lengthof(i->produced_cargo_waiting); j++) { uint cw = min(i->produced_cargo_waiting[j], 255); |