]> git.mxchange.org Git - flightgear.git/commitdiff
The Irix compiler was reporting a "can't jump out of region" error with the
authorcurt <curt>
Mon, 17 Dec 2001 17:41:44 +0000 (17:41 +0000)
committercurt <curt>
Mon, 17 Dec 2001 17:41:44 +0000 (17:41 +0000)
current code.  This tweak seems to fix it.

src/WeatherCM/FGLocalWeatherDatabase.cpp

index 0bc7098da746a1046d335a9e0112553b8a578dab..ee7d4e88fde6902804cff92829937f7762872162 100644 (file)
@@ -195,8 +195,9 @@ void FGLocalWeatherDatabase::init( const WeatherPrecision visibility,
            double x[2] = {0.0,  0.0};  //make an standard weather that's the same at the whole world
            double y[2] = {0.0,  0.0};  //make an standard weather that's the same at the whole world
            double z[2] = {1.0, -1.0};  //make an standard weather that's the same at the whole world
-            FGPhysicalProperties f[2];  //make an standard weather that's the same at the whole world
+            FGPhysicalProperties *f = new FGPhysicalProperties[2];  //make an standard weather that's the same at the whole world
            database = new SphereInterpolate<FGPhysicalProperties>(2,x,y,z,f);
+            delete[] f;
        }
        break;