From: curt Date: Tue, 12 Jun 2001 05:16:38 +0000 (+0000) Subject: replaced dynamically-sized arrays with statically-sized ones, to X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fe1f65eb24abefa0b2d64e439d6ce67513e28a99;p=flightgear.git replaced dynamically-sized arrays with statically-sized ones, to work around MSVC bugs. --- diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 43cf0037c..2a865002f 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -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);