1
0
Fork 0

Guard against a crash Torsten encountered once.

This commit is contained in:
James Turner 2015-02-19 23:58:40 +00:00
parent cc6178a9f3
commit 1898a5fef8

View file

@ -930,7 +930,7 @@ void QtLauncher::onRun()
if (m_ui->runwayRadio->isChecked()) {
int index = m_ui->runwayCombo->currentData().toInt();
if (index >= 0) {
if ((index >= 0) && m_selectedAirport) {
// explicit runway choice
opt->addOption("runway", m_selectedAirport->getRunwayByIndex(index)->ident());
}