]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalSys.hxx
- fix two bugs
[flightgear.git] / src / Scripting / NasalSys.hxx
index 0b10ad0c7f20e191dd5bdeb90587ee0a33c3d5a0..ca7d9f2eaa23d57ae5511f42de3a8263c2303cd4 100644 (file)
@@ -53,7 +53,7 @@ public:
     virtual bool handleCommand(const SGPropertyNode* arg);
 
     void createModule(const char* moduleName, const char* fileName,
-                    const char* src, int len);
+                    const char* src, int len, const SGPropertyNode* arg=0);
 
     void deleteModule(const char* moduleName);
 
@@ -96,7 +96,7 @@ private:
     naContext _context;
     naRef _globals;
 
-    SGPropertyNode* _cmdArg;
+    SGPropertyNode_ptr _cmdArg;
 
     int _nextGCKey;
     naRef _gcHash;
@@ -137,7 +137,7 @@ private:
     naRef _handler;
     int _gcKey;
     FGNasalSys* _nas;
-    bool _active;
+    unsigned int _active;
 };