From 5572c53a7ebf2b3a0b683f1e2baedeaf9cac7d3d Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 2 Jun 2011 00:33:47 +0100 Subject: [PATCH] Minor tweaks to positioned find commands. --- src/Navaids/positioned.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Navaids/positioned.cxx b/src/Navaids/positioned.cxx index 88613881b..7aa183eba 100644 --- a/src/Navaids/positioned.cxx +++ b/src/Navaids/positioned.cxx @@ -841,7 +841,7 @@ FGPositioned::sortByRange(List& aResult, const SGGeod& aPos) FGPositioned::Filter* createSearchFilter(const SGPropertyNode* arg) { - string sty(arg->getStringValue("type", 0)); + string sty(arg->getStringValue("type", "any")); FGPositioned::Type ty = FGPositioned::typeFromName(sty); double minRunwayLenFt = arg->getDoubleValue("min-runway-length-ft", -1.0); @@ -932,7 +932,7 @@ bool commandFindByIdent(const SGPropertyNode* arg) if (arg->hasChild("name")) { results = FGPositioned::findAllWithName(arg->getStringValue("name"), filt.get(), exact); } else if (arg->hasChild("ident")) { - results = FGPositioned::findAllWithName(arg->getStringValue("ident"), filt.get(), exact); + results = FGPositioned::findAllWithIdent(arg->getStringValue("ident"), filt.get(), exact); } else { SG_LOG(SG_GENERAL, SG_WARN, "commandFindByIdent: no search term defined"); return false; -- 2.39.5