From 2467c8e2f8c6a9a1793e929b403104ae8e0db0ba Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 1 Jun 2001 20:29:03 +0000 Subject: [PATCH] Move a variable declaration out of the case statement. --- 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 338b204cb..36e13f5b5 100644 --- a/src/WeatherCM/FGLocalWeatherDatabase.cpp +++ b/src/WeatherCM/FGLocalWeatherDatabase.cpp @@ -73,6 +73,8 @@ void FGLocalWeatherDatabase::init( const WeatherPrecision visibility, const DatabaseWorkingType type, const string &root ) { + FGPhysicalProperties f[2]; //make an standard weather that's the same at the whole world + cerr << "Initializing FGLocalWeatherDatabase\n"; cerr << "-----------------------------------\n"; @@ -145,7 +147,6 @@ 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 database = new SphereInterpolate(2,x,y,z,f); } break; -- 2.39.5