summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 21:40:21 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 21:40:21 +0000
commit0f55757c602c7fec723f73e5820ec936d24cd826 (patch)
tree6bd5d5eb110441ca6ddc4a01d90f4cf2d50af387 /src/game.cpp
parent654d24e74c56d240b8d622840c135e22a029636d (diff)
downloadmana-client-0f55757c602c7fec723f73e5820ec936d24cd826.tar.gz
mana-client-0f55757c602c7fec723f73e5820ec936d24cd826.tar.bz2
mana-client-0f55757c602c7fec723f73e5820ec936d24cd826.tar.xz
mana-client-0f55757c602c7fec723f73e5820ec936d24cd826.zip
Removed some useless null pointer checks.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
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)