From e845dab6e001530ddf29ab939bdc6da13a373867 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Thu, 15 Dec 2016 10:49:09 +0100 Subject: [PATCH] Fix an MSVC error --- src/FDM/SP/AISim.cpp | 4 ++-- src/FDM/SP/AISim.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FDM/SP/AISim.cpp b/src/FDM/SP/AISim.cpp index 1e866d88b..4de22a273 100644 --- a/src/FDM/SP/AISim.cpp +++ b/src/FDM/SP/AISim.cpp @@ -182,8 +182,8 @@ FGAISim::update(double ddt) float gear_comp = 0.2f + _MINMAX(agl/gear[Z], -0.2f, 0.0f); printf("agl: %7.6f, gear-z: %7.6f, comp: %f\n", agl, gear[Z], gear_comp); if (gear_comp > 0.1f) { - simd4_t FLGear = 0.0f; FLGear[Z] = Cgear*gear_comp; -// simd4_t MLGear = 0.0f; + simd4_t FLGear = 0.0f; FLGear[Z] = Cgear*gear_comp; +// simd4_t MLGear = 0.0f; FXYZ += FLGear; // MlmnT += MLGear; diff --git a/src/FDM/SP/AISim.hpp b/src/FDM/SP/AISim.hpp index f81c300cf..0266bdb91 100644 --- a/src/FDM/SP/AISim.hpp +++ b/src/FDM/SP/AISim.hpp @@ -180,7 +180,7 @@ private: /* run 20 to 60 times (or more) per second */ /* cache, values that don't change very often */ - simd4_t FThrust, MThrust; + simd4_t FThrust, MThrust; float b_2U, cbar_2U; /* dynamic coefficients (already multiplied with their value) */