mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-04 10:17:08 +01:00
Fix 77f27e08
: Crash due to incorrect use of AirportSpec::GetIndex
This commit is contained in:
parent
cfeab64aaf
commit
daa4981922
@ -551,7 +551,7 @@ public:
|
|||||||
if (as->IsAvailable()) {
|
if (as->IsAvailable()) {
|
||||||
_selected_airport_class = cls.Index();
|
_selected_airport_class = cls.Index();
|
||||||
this->vscroll->SetCount(cls.GetSpecCount());
|
this->vscroll->SetCount(cls.GetSpecCount());
|
||||||
this->SelectOtherAirport(as->GetIndex());
|
this->SelectOtherAirport(as->index);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user