1
0
Fork 0

make sure node pointers remain valid

This commit is contained in:
mfranz 2006-03-23 15:13:19 +00:00
parent 75d4423b54
commit 1aa274e7cb
2 changed files with 10 additions and 10 deletions

View file

@ -41,7 +41,7 @@ class fg_Cockpit {
private: private:
int Code; int Code;
int cockpitStatus; int cockpitStatus;
SGPropertyNode * hud_status; SGPropertyNode_ptr hud_status;
public: public:
fg_Cockpit () : Code(1), cockpitStatus(0) {}; fg_Cockpit () : Code(1), cockpitStatus(0) {};

View file

@ -199,14 +199,14 @@ private:
int _height; int _height;
int _view_height; int _view_height;
SGPropertyNode * _visibility; SGPropertyNode_ptr _visibility;
SGPropertyNode * _x_offset; SGPropertyNode_ptr _x_offset;
SGPropertyNode * _y_offset; SGPropertyNode_ptr _y_offset;
SGPropertyNode * _jitter; SGPropertyNode_ptr _jitter;
SGPropertyNode * _flipx; SGPropertyNode_ptr _flipx;
const SGPropertyNode * _xsize_node; SGConstPropertyNode_ptr _xsize_node;
const SGPropertyNode * _ysize_node; SGConstPropertyNode_ptr _ysize_node;
ssgTexture * _bg; ssgTexture * _bg;
ssgTexture * _mbg[8]; ssgTexture * _mbg[8];
@ -303,7 +303,7 @@ public:
virtual ~FGPanelTransformation (); virtual ~FGPanelTransformation ();
Type type; Type type;
const SGPropertyNode * node; SGConstPropertyNode_ptr node;
float min; float min;
float max; float max;
bool has_mod; bool has_mod;
@ -529,7 +529,7 @@ public:
private: private:
ChunkType _type; ChunkType _type;
string _text; string _text;
const SGPropertyNode * _node; SGConstPropertyNode_ptr _node;
string _fmt; string _fmt;
float _mult; float _mult;
float _offs; float _offs;