From 771fbd680af324ae04e12193a6de879cb16cffe2 Mon Sep 17 00:00:00 2001 From: daveluff Date: Sun, 12 Mar 2006 21:10:34 +0000 Subject: [PATCH] Helipads don't have a number per end, so don't attempt to return a (broken) reverse rwy number --- src/Airports/runways.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Airports/runways.cxx b/src/Airports/runways.cxx index 8680818ff..cf6550aea 100644 --- a/src/Airports/runways.cxx +++ b/src/Airports/runways.cxx @@ -96,6 +96,11 @@ void FGRunwayList::add( const string& id, const string& rwy_no, static string GetReverseRunwayNo(string& rwyno) { // cout << "Original rwyno = " << rwyNo << '\n'; + // Helipads don't have a seperate number per end + if(rwyno.size() && (rwyno[0] == 'H' || rwyno[0] == 'h')) { + return rwyno; + } + // standardize input number string tmp = rwyno.substr(1, 1); if (( tmp == "L" || tmp == "R" || tmp == "C" ) || (rwyno.size() == 1)) {