From 3a1edc71e047a9ce7031ee9a58e1603f2f6fd6fe Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 27 Feb 2010 00:48:39 +0200 Subject: [PATCH] Fix calling setMap on deleted viewPort --- src/game.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index b367064..c474d41 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 = ""; -- 1.7.0