diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/game.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -12,8 +12,8 @@ src/gui/serverdialog.cpp, src/gui/inventorywindow.cpp: Removed window padding and replaced it by layout margin, so that the grip on resizable window is not outside the inner clip area. - * src/engine.cpp, src/engine.h: Fixed current map not deleted on server - change. + * src/engine.cpp, src/engine.h, src/game.cpp: Fixed current map not + deleted on server change. * src/gui/inventorywindow.cpp, src/gui/inventorywindow.h: Removed redundant destructor. * src/resources/monsterdb.cpp: Plugged memory leak in database reader. diff --git a/src/game.cpp b/src/game.cpp index 176d9642..53874f4d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -287,7 +287,6 @@ Game::~Game() { Net::clearHandlers(); - delete engine; delete player_node; destroyGuiWindows(); @@ -296,6 +295,7 @@ Game::~Game() delete channelManager; delete joystick; delete particleEngine; + delete engine; viewport->setMap(NULL); player_node = NULL; |