From 0f55757c602c7fec723f73e5820ec936d24cd826 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sun, 19 Mar 2006 21:40:21 +0000 Subject: Removed some useless null pointer checks. --- src/game.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/game.cpp') 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) -- cgit v1.2.3-70-g09d2