Fix missing return statement and unused local variable
This commit is contained in:
parent
4ea7fc6327
commit
789779d532
1 changed files with 3 additions and 1 deletions
|
@ -323,7 +323,7 @@ void FGGroundNetwork::init()
|
|||
int FGGroundNetwork::findNearestNode(double lat, double lon)
|
||||
{
|
||||
double minDist = HUGE_VAL;
|
||||
double course, dist;
|
||||
double dist;
|
||||
int index;
|
||||
SGWayPoint first (lon,
|
||||
lat,
|
||||
|
@ -737,6 +737,7 @@ bool FGGroundNetwork::hasInstruction(int id)
|
|||
} else {
|
||||
return i->hasInstruction();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
FGATCInstruction FGGroundNetwork::getInstruction(int id)
|
||||
|
@ -754,6 +755,7 @@ FGATCInstruction FGGroundNetwork::getInstruction(int id)
|
|||
} else {
|
||||
return i->getInstruction();
|
||||
}
|
||||
return FGATCInstruction();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue