#endif
#include <Navaids/markerbeacon.hxx>
+#include <Airports/runways.hxx>
+#include <Navaids/NavDataCache.hxx>
using std::string;
_runway(aRunway)
{
}
+
+FGRunwayRef FGMarkerBeaconRecord::runway() const
+{
+ FGPositioned* p = flightgear::NavDataCache::instance()->loadById(_runway);
+ assert(p->type() == FGPositioned::RUNWAY);
+ return static_cast<FGRunway*>(p);
+}
\ No newline at end of file