From: curt Date: Wed, 20 Dec 2000 23:50:44 +0000 (+0000) Subject: Fixed an array overrun typo ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6ccc92a666d286ab5c979f7de9ce3955f74cc64f;p=flightgear.git Fixed an array overrun typo ... --- diff --git a/src/WeatherCM/FGLocalWeatherDatabase.cpp b/src/WeatherCM/FGLocalWeatherDatabase.cpp index dc9f55212..e17d3ce67 100644 --- a/src/WeatherCM/FGLocalWeatherDatabase.cpp +++ b/src/WeatherCM/FGLocalWeatherDatabase.cpp @@ -204,7 +204,7 @@ void FGLocalWeatherDatabase::update(const sgVec3& p, const WeatherPrecision dt) /****************************************************************************/ FGPhysicalProperty FGLocalWeatherDatabase::get(const sgVec3& p) const { - return FGPhysicalProperty(database->Evaluate(p), p[3]); + return FGPhysicalProperty(database->Evaluate(p), p[2]); } #ifdef macintosh @@ -222,7 +222,7 @@ FGPhysicalProperties FGLocalWeatherDatabase::get(const sgVec2& p) const WeatherPrecision FGLocalWeatherDatabase::getAirDensity(const sgVec3& p) const { - FGPhysicalProperty dummy(database->Evaluate(p), p[3]); + FGPhysicalProperty dummy(database->Evaluate(p), p[2]); return (dummy.AirPressure*FG_WEATHER_DEFAULT_AIRDENSITY*FG_WEATHER_DEFAULT_TEMPERATURE) /