summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/joystick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/joystick.cpp b/src/joystick.cpp
index 52d2f415b..29e16dff4 100644
--- a/src/joystick.cpp
+++ b/src/joystick.cpp
@@ -129,12 +129,12 @@ void Joystick::setNumber(int n)
{
SDL_JoystickClose(mJoystick);
mNumber = n;
+ open();
}
else
{
mNumber = n;
}
- open();
}
void Joystick::update()