]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/route.cxx
commradio: improvements for atis speech
[flightgear.git] / src / Navaids / route.cxx
index 9123d24c3059b0cc3cb6698b0d928fead8b7219f..8d4eb4029a8b04a88306adb67b928ad704ddfd97 100644 (file)
@@ -48,7 +48,7 @@
 #include <Navaids/procedure.hxx>
 #include <Navaids/waypoint.hxx>
 #include <Navaids/LevelDXML.hxx>
-#include <Airports/simple.hxx>
+#include <Airports/airport.hxx>
 
 using std::string;
 using std::vector;
@@ -91,6 +91,10 @@ bool Waypt::flag(WayptFlag aFlag) const
        
 void Waypt::setFlag(WayptFlag aFlag, bool aV)
 {
+    if (aFlag == 0) {
+        throw sg_range_exception("invalid waypoint flag set");
+    }
+    
   _flags = (_flags & ~aFlag);
   if (aV) _flags |= aFlag;
 }