Fixed a sigsegv, once we've found a match for an event device and

joystick, don't look at that stick again, especially having nulled the
pointer.
This commit is contained in:
endolf 2005-12-04 22:14:35 +00:00
parent c47f72208e
commit 552fdad56d

View file

@ -95,6 +95,7 @@ JNIEXPORT jint JNICALL Java_net_java_games_input_JInputLibrary_nativeInit
LOG_TRACE("Creating a mixed device with id %d, combining event device %d and joystick device %d\n", jinputNumDevices, i, j);
jinputDeviceList[jinputNumDevices] = new MixedDevice(jsDevice, eventDevice);
jsDevices[j] = NULL;
j++;
jinputNumDevices++;
joystickPtr = j;
j = numJoysticks;