From 75037e081b413a4144aa08490cee76883ed692d2 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 17 Dec 2001 17:41:44 +0000 Subject: [PATCH] The Irix compiler was reporting a "can't jump out of region" error with the current code. This tweak seems to fix it. --- src/WeatherCM/FGLocalWeatherDatabase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WeatherCM/FGLocalWeatherDatabase.cpp b/src/WeatherCM/FGLocalWeatherDatabase.cpp index 0bc7098da..ee7d4e88f 100644 --- a/src/WeatherCM/FGLocalWeatherDatabase.cpp +++ b/src/WeatherCM/FGLocalWeatherDatabase.cpp @@ -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(2,x,y,z,f); + delete[] f; } break; -- 2.39.5