summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 16:36:34 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-10 16:36:34 -0600
commit7af746a8ce0c64932923419c5a35a25a5b8c4005 (patch)
treec26b37811a9347efecc948fe4f048b51ded50415 /src/game.cpp
parente2e30710a646965a506444cc0dc8a91e1a718002 (diff)
downloadmana-client-7af746a8ce0c64932923419c5a35a25a5b8c4005.tar.gz
mana-client-7af746a8ce0c64932923419c5a35a25a5b8c4005.tar.bz2
mana-client-7af746a8ce0c64932923419c5a35a25a5b8c4005.tar.xz
mana-client-7af746a8ce0c64932923419c5a35a25a5b8c4005.zip
Delete local player earlier and fix a rare crash
Rare crash is in KeyboardConfig, where the active keys array is accessed before it's initialized. Also remove some debug prints that made it into a previous commit.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 6e513eec..e04a5ee8 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -347,11 +347,11 @@ Game::~Game()
destroyGuiWindows();
delete beingManager;
+ delete player_node;
delete floorItemManager;
delete joystick;
delete particleEngine;
delete engine;
- delete player_node;
beingManager = NULL;
floorItemManager = NULL;