1
0
Fork 0

fix array index out of bounds in dynamics.cxx

This commit is contained in:
adrian 2011-09-05 07:56:13 +03:00
parent 9afa0e90ed
commit c69c91769e

View file

@ -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];
}