(svn r17105) -Codechange: no need to reset list of industries nearby that often, clearing is enough

This commit is contained in:
smatz 2009-08-07 20:30:38 +00:00
parent 3532592e7d
commit 33288c9d50

View File

@ -287,7 +287,7 @@ static bool FindIndustryToDeliver(TileIndex ind_tile, void *user_data)
*/ */
void Station::RecomputeIndustriesNear() void Station::RecomputeIndustriesNear()
{ {
this->industries_near.Reset(); this->industries_near.Clear();
if (this->rect.IsEmpty()) return; if (this->rect.IsEmpty()) return;
/* Compute acceptance rectangle */ /* Compute acceptance rectangle */