From b61e22bdb3f4adf788d7f817e2ee9693e74c7e81 Mon Sep 17 00:00:00 2001 From: Vivian Meazza Date: Mon, 5 Dec 2011 08:55:33 +0000 Subject: [PATCH] Windows fixes/work-arounds Signed-off-by: Vivian Meazza --- src/Radio/radio.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Radio/radio.cxx b/src/Radio/radio.cxx index 4c80a9fe5..e5719e0dc 100644 --- a/src/Radio/radio.cxx +++ b/src/Radio/radio.cxx @@ -362,8 +362,10 @@ double FGRadioTransmission::ITM_calculate_attenuation(SGGeod pos, double freq, i _elevations.push_front(point_distance); _elevations.push_front(num_points -1); - int size = _elevations.size(); - double itm_elev[size]; + + int size = _elevations.size(); + double itm_elev[10000]; + for(int i=0;i