Fix crash using picker tool on rail/road stations when no GRF classes defined
See: #575
This commit is contained in:
@@ -1123,6 +1123,9 @@ private:
|
||||
*/
|
||||
void EnsureSelectedStationClassIsVisible()
|
||||
{
|
||||
/* No additional station types present */
|
||||
if (this->vscroll == nullptr) return;
|
||||
|
||||
uint pos = 0;
|
||||
for (auto station_class : this->station_classes) {
|
||||
if (station_class == _railstation.station_class) break;
|
||||
|
Reference in New Issue
Block a user