summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-02-27 00:48:39 +0200
committerJared Adams <jaxad0127@gmail.com>2010-02-26 16:27:15 -0700
commit5580ebe8946534e71caf63f423824abbf43aa282 (patch)
tree8e0f20b06d654bc6685e926e2af4670bb157cf7c
parentd564943867452ad76e6d313a28870e640715dded (diff)
downloadmana-5580ebe8946534e71caf63f423824abbf43aa282.tar.gz
mana-5580ebe8946534e71caf63f423824abbf43aa282.tar.bz2
mana-5580ebe8946534e71caf63f423824abbf43aa282.tar.xz
mana-5580ebe8946534e71caf63f423824abbf43aa282.zip
Fix calling setMap on deleted viewport
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b3670641..c474d41b 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -275,10 +275,10 @@ Game::~Game()
delete commandHandler;
delete joystick;
delete particleEngine;
- delete viewport;
viewport->setMap(NULL);
+ delete viewport;
delete mCurrentMap;
map_path = "";