]> git.mxchange.org Git - flightgear.git/commitdiff
replaced dynamically-sized arrays with statically-sized ones, to
authorcurt <curt>
Tue, 12 Jun 2001 05:16:38 +0000 (05:16 +0000)
committercurt <curt>
Tue, 12 Jun 2001 05:16:38 +0000 (05:16 +0000)
work around MSVC bugs.

src/Input/input.cxx

index 43cf0037c5bbcde7b62c9d4e7344c9e35984b86d..2a865002f176fc2d0a6a4c70767caa6dd8f875f3 100644 (file)
@@ -553,9 +553,9 @@ FGInput::_init_joystick ()
     SG_LOG(SG_INPUT, SG_INFO, "Initializing joystick " << i);
 
                                // Set up range arrays
-    float minRange[naxes];
-    float maxRange[naxes];
-    float center[naxes];
+    float minRange[MAX_AXES];
+    float maxRange[MAX_AXES];
+    float center[MAX_AXES];
 
                                // Initialize with default values
     js->getMinRange(minRange);