diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-11-27 21:46:48 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-11-27 21:47:49 +0100 |
commit | 65e94b56c9b7b0f69911ba37fe1a22f22e9ba09e (patch) | |
tree | c4037f2e53442107f4b421d23db5625559755df8 /src/game.cpp | |
parent | 8ca7a933eb5d2b900ceb11fd8008941d59566666 (diff) | |
download | mana-65e94b56c9b7b0f69911ba37fe1a22f22e9ba09e.tar.gz mana-65e94b56c9b7b0f69911ba37fe1a22f22e9ba09e.tar.bz2 mana-65e94b56c9b7b0f69911ba37fe1a22f22e9ba09e.tar.xz mana-65e94b56c9b7b0f69911ba37fe1a22f22e9ba09e.zip |
Make sure to initialize joystick enabled state
Joystick enabled state could end up uninitialized on unsuccesfully
trying to open a joystick. In addition, the enabled state wasn't
actually used in the accessor methods for the joystick buttons.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 245e711e..9fa0129e 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -297,9 +297,7 @@ Game::Game(Network *network): // TODO: The user should be able to choose which one to use // Open the first device if (Joystick::getNumberOfJoysticks() > 0) - { joystick = new Joystick(0); - } network->registerHandler(mBeingHandler.get()); network->registerHandler(mBuySellHandler.get()); |