]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIManager.hxx
Fix line endings
[flightgear.git] / src / AIModel / AIManager.hxx
index 0ed6c9fcbf81992f938c36d74e286ef7a37bb86b..9686ba009bad18fc5d97cf8d0e6cfd3a3602cfe1 100644 (file)
@@ -95,9 +95,7 @@ public:
     inline double get_wind_from_east() const {return wind_from_east; }
     inline double get_wind_from_north() const {return wind_from_north; }
 
-    inline int getNum( FGAIBase::object_type ot ) const {
-      return (0 < ot && ot < FGAIBase::MAX_OBJECTS) ? numObjects[ot] : numObjects[0];
-    }
+    int getNumAiObjects(void) const;
 
     void processScenario( const string &filename );
 
@@ -112,7 +110,8 @@ public:
 private:
 
     bool enabled;
-    int numObjects[FGAIBase::MAX_OBJECTS];
+    int mNumAiModels;
+
     SGPropertyNode* root;
     SGPropertyNode* wind_from_down_node;
     SGPropertyNode* user_latitude_node;