1
0
Fork 0

- use guarded pointer for (unused) refuel_node

- comment out refuel_node->setBoolValue()  (as it was in the original patch :-)
This commit is contained in:
mfranz 2006-05-26 05:23:40 +00:00
parent 9e9d463a11
commit 4f17b48e83
2 changed files with 2 additions and 2 deletions

View file

@ -430,7 +430,7 @@ void FGAIAircraft::Run(double dt) {
if ( isTanker) { if ( isTanker) {
if ( (range_ft2 < 250.0 * 250.0) && (y_shift > 0.0) if ( (range_ft2 < 250.0 * 250.0) && (y_shift > 0.0)
&& (elevation > 0.0) ) { && (elevation > 0.0) ) {
refuel_node->setBoolValue(true); //refuel_node->setBoolValue(true);
contact = true; contact = true;
} else { } else {
//refuel_node->setBoolValue(false); //refuel_node->setBoolValue(false);

View file

@ -99,7 +99,7 @@ private:
const PERF_STRUCT *performance; const PERF_STRUCT *performance;
bool use_perf_vs; bool use_perf_vs;
SGPropertyNode* refuel_node; SGPropertyNode_ptr refuel_node;
bool isTanker; bool isTanker;
void Run(double dt); void Run(double dt);