]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCDialog.cxx
Oliver Schroeder:
[flightgear.git] / src / ATC / ATCDialog.cxx
index 58f1ceba4c27ee089bf92682253a2ea024c9185b..65fbefd1dcd4ed16287e662312de012b50226bb6 100644 (file)
@@ -78,7 +78,6 @@ static SGPropertyNode *getNamedNode(SGPropertyNode *prop, const char *name) {
                if ((p = getNamedNode(prop->getChild(i), name)))
                        return p;
 
-
        if (!strcmp(prop->getStringValue("name"), name))
                return prop;
 
@@ -289,10 +288,10 @@ struct atcdata {
                id = i, name = n, distance = d;
        }
        bool operator<(const atcdata& a) const {
-               return a.id != id && a.distance > distance;
+               return id != a.id && distance < a.distance;
        }
        bool operator==(const atcdata& a) const {
-               return a.distance == distance && a.id == id;
+               return distance == a.distance && id == a.id;
        }
        string id;
        string name;