1
0
Fork 0

Fix missing return statement and unused local variable

This commit is contained in:
fredb 2006-09-02 08:10:13 +00:00
parent 4ea7fc6327
commit 789779d532

View file

@ -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();
}