From 58ca6c916f3e9b74ca2a0f3ee2f23f0ece247f4e Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Fri, 3 Dec 2010 08:59:14 +0100 Subject: [PATCH] Fix for bug #177 - check for empty strings --- src/Airports/simple.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Airports/simple.cxx b/src/Airports/simple.cxx index c7e486f45..7eceffe5b 100644 --- a/src/Airports/simple.cxx +++ b/src/Airports/simple.cxx @@ -143,7 +143,10 @@ FGRunway* FGAirport::getRunwayByIdent(const string& aIdent) const FGAirport::Runway_iterator FGAirport::getIteratorForRunwayIdent(const string& aIdent) const -{ +{ + if (aIdent.empty()) + return mRunways.end(); + loadRunways(); string ident(aIdent); -- 2.39.5