Fix: Var68 for station and roadstop was broken (#10784)

This commit is contained in:
kiwitreekor
2023-05-08 03:04:34 +09:00
committed by GitHub
parent 98d809c33b
commit 3375f25b70
2 changed files with 2 additions and 2 deletions

View File

@@ -364,7 +364,7 @@ TownScopeResolver *StationResolverObject::GetTown()
if (IsCustomStationSpecIndex(nearby_tile)) {
const StationSpecList ssl = BaseStation::GetByTile(nearby_tile)->speclist[GetCustomStationSpecIndex(nearby_tile)];
res |= 1 << (ssl.grfid != grfid ? 9 : 8) | std::max<uint16_t>(ssl.localidx, 0xFF);
res |= 1 << (ssl.grfid != grfid ? 9 : 8) | ClampTo<uint8_t>(ssl.localidx);
}
return res;
}