Fix for bug, ILS not visible in map on first run.
When calling setILS, in-memory runways did not get updated. This showed up in the map, but also affecting a few other places. Will port this to 2.10.1 when that process starts.
This commit is contained in:
parent
e6297959d9
commit
b71e703d75
1 changed files with 6 additions and 0 deletions
|
@ -1561,6 +1561,12 @@ void NavDataCache::setRunwayILS(PositionedID runway, PositionedID ils)
|
||||||
sqlite3_bind_int64(d->setRunwayILS, 1, runway);
|
sqlite3_bind_int64(d->setRunwayILS, 1, runway);
|
||||||
sqlite3_bind_int64(d->setRunwayILS, 2, ils);
|
sqlite3_bind_int64(d->setRunwayILS, 2, ils);
|
||||||
d->execUpdate(d->setRunwayILS);
|
d->execUpdate(d->setRunwayILS);
|
||||||
|
|
||||||
|
// and the in-memory one
|
||||||
|
if (d->cache.find(runway) != d->cache.end()) {
|
||||||
|
FGRunway* instance = (FGRunway*) d->cache[runway].ptr();
|
||||||
|
instance->setILS(ils);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavDataCache::updateRunwayThreshold(PositionedID runwayID, const SGGeod &aThreshold,
|
void NavDataCache::updateRunwayThreshold(PositionedID runwayID, const SGGeod &aThreshold,
|
||||||
|
|
Loading…
Add table
Reference in a new issue