fix array index out of bounds in dynamics.cxx
This commit is contained in:
parent
9afa0e90ed
commit
c69c91769e
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ int FGAirportDynamics::getGroundFrequency(unsigned leg)
|
|||
|
||||
if ((freqGround.size() < leg) && (leg > 0)) {
|
||||
groundFreq =
|
||||
(freqGround.size() <
|
||||
(freqGround.size() <=
|
||||
(leg - 1)) ? freqGround[freqGround.size() -
|
||||
1] : freqGround[leg - 1];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue