diff --git a/libraries/AP_Common/Location.h b/libraries/AP_Common/Location.h index a881e0e541..6ee6c4b45d 100644 --- a/libraries/AP_Common/Location.h +++ b/libraries/AP_Common/Location.h @@ -112,7 +112,7 @@ public: */ float line_path_proportion(const Location &point1, const Location &point2) const; - bool initialised() const { return (lat !=0 || lng != 0); } + bool initialised() const { return (lat !=0 || lng != 0 || alt != 0); } private: static AP_Terrain *_terrain;