diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp index a780c2d7..f8812b81 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -308,14 +308,11 @@ Game::~Game() delete beingManager; delete floorItemManager; + delete joystick; beingManager = NULL; floorItemManager = NULL; - - if (joystick != NULL) - { - delete joystick; - } + joystick = NULL; } bool saveScreenshot(SDL_Surface *screenshot) |