summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-08-07 20:30:38 +0000
committersmatz <smatz@openttd.org>2009-08-07 20:30:38 +0000
commit33288c9d5059fba7aee5eb15eb5c4b60034178c5 (patch)
treeffb799c5e5345b7475e5de75ef8a7fdcbf54af93
parent3532592e7d026fb077f584946e48010e4a5b65a1 (diff)
downloadopenttd-33288c9d5059fba7aee5eb15eb5c4b60034178c5.tar.xz
(svn r17105) -Codechange: no need to reset list of industries nearby that often, clearing is enough
-rw-r--r--src/station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station.cpp b/src/station.cpp
index 89064f77a..ee000a8e0 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -287,7 +287,7 @@ static bool FindIndustryToDeliver(TileIndex ind_tile, void *user_data)
*/
void Station::RecomputeIndustriesNear()
{
- this->industries_near.Reset();
+ this->industries_near.Clear();
if (this->rect.IsEmpty()) return;
/* Compute acceptance rectangle */