diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-10 16:36:34 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-10 16:36:34 -0600 |
commit | 7af746a8ce0c64932923419c5a35a25a5b8c4005 (patch) | |
tree | c26b37811a9347efecc948fe4f048b51ded50415 /src/game.cpp | |
parent | e2e30710a646965a506444cc0dc8a91e1a718002 (diff) | |
download | mana-7af746a8ce0c64932923419c5a35a25a5b8c4005.tar.gz mana-7af746a8ce0c64932923419c5a35a25a5b8c4005.tar.bz2 mana-7af746a8ce0c64932923419c5a35a25a5b8c4005.tar.xz mana-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.cpp | 2 |
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; |