- use guarded pointer for (unused) refuel_node
- comment out refuel_node->setBoolValue() (as it was in the original patch :-)
This commit is contained in:
parent
9e9d463a11
commit
4f17b48e83
2 changed files with 2 additions and 2 deletions
|
@ -430,7 +430,7 @@ void FGAIAircraft::Run(double dt) {
|
|||
if ( isTanker) {
|
||||
if ( (range_ft2 < 250.0 * 250.0) && (y_shift > 0.0)
|
||||
&& (elevation > 0.0) ) {
|
||||
refuel_node->setBoolValue(true);
|
||||
//refuel_node->setBoolValue(true);
|
||||
contact = true;
|
||||
} else {
|
||||
//refuel_node->setBoolValue(false);
|
||||
|
|
|
@ -99,7 +99,7 @@ private:
|
|||
|
||||
const PERF_STRUCT *performance;
|
||||
bool use_perf_vs;
|
||||
SGPropertyNode* refuel_node;
|
||||
SGPropertyNode_ptr refuel_node;
|
||||
bool isTanker;
|
||||
|
||||
void Run(double dt);
|
||||
|
|
Loading…
Reference in a new issue