forked from mirror/OpenTTD
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
This commit is contained in:
@@ -601,9 +601,9 @@ bool CheckSubsidised(CargoID cargo_type, CompanyID company, SourceType src_type,
|
||||
}
|
||||
break;
|
||||
case ST_TOWN:
|
||||
for (const Town * const *tp = towns_near.Begin(); tp != towns_near.End(); tp++) {
|
||||
if (s->dst == (*tp)->index) {
|
||||
assert((*tp)->cache.part_of_subsidy & POS_DST);
|
||||
for (const Town *tp : towns_near) {
|
||||
if (s->dst == tp->index) {
|
||||
assert(tp->cache.part_of_subsidy & POS_DST);
|
||||
subsidised = true;
|
||||
if (!s->IsAwarded()) s->AwardTo(company);
|
||||
}
|
||||
|
Reference in New Issue
Block a user