X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fmarkerbeacon.cxx;h=82726e8e1042293411872f536189f17960a7ff51;hb=487546c848ad5559760b4de4aa36f19b9b8627a7;hp=769eda40a0d6399632539f96b31586104a0708c9;hpb=9b900e94304b95337e2731946525cde4ef377da9;p=flightgear.git diff --git a/src/Navaids/markerbeacon.cxx b/src/Navaids/markerbeacon.cxx index 769eda40a..82726e8e1 100644 --- a/src/Navaids/markerbeacon.cxx +++ b/src/Navaids/markerbeacon.cxx @@ -25,6 +25,8 @@ #endif #include +#include +#include using std::string; @@ -34,3 +36,10 @@ FGMarkerBeaconRecord::FGMarkerBeaconRecord(PositionedID aGuid, Type aTy, _runway(aRunway) { } + +FGRunwayRef FGMarkerBeaconRecord::runway() const +{ + FGPositioned* p = flightgear::NavDataCache::instance()->loadById(_runway); + assert(p->type() == FGPositioned::RUNWAY); + return static_cast(p); +} \ No newline at end of file