Fix for bug #177 - check for empty strings
This commit is contained in:
parent
a9a1734f1e
commit
58ca6c916f
1 changed files with 4 additions and 1 deletions
|
@ -143,7 +143,10 @@ FGRunway* FGAirport::getRunwayByIdent(const string& aIdent) const
|
||||||
|
|
||||||
FGAirport::Runway_iterator
|
FGAirport::Runway_iterator
|
||||||
FGAirport::getIteratorForRunwayIdent(const string& aIdent) const
|
FGAirport::getIteratorForRunwayIdent(const string& aIdent) const
|
||||||
{
|
{
|
||||||
|
if (aIdent.empty())
|
||||||
|
return mRunways.end();
|
||||||
|
|
||||||
loadRunways();
|
loadRunways();
|
||||||
|
|
||||||
string ident(aIdent);
|
string ident(aIdent);
|
||||||
|
|
Loading…
Add table
Reference in a new issue