1
0
Fork 0

Fix for bug - check for empty strings

This commit is contained in:
Frederic Bouvier 2010-12-03 08:59:14 +01:00
parent a9a1734f1e
commit 58ca6c916f

View file

@ -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);